Part Number Hot Search : 
IRLZ24NL 1H681 IRLZ24NL MSM51 CAT24C21 2SK1400 2SA1830 01070
Product Description
Full Text Search
 

To Download ATXMEGA128A1-14 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  not recommended for new desi gns - use xmega a1u series 8067o?avr?06/2013 features ? high-performance, low-power atmel ? avr ? xmega ? 8/16-bit microcontroller ? nonvolatile program and data memories ? 64k - 128kbytes of in-system self-programmable flash ? 4k - 8kbytes boot section ? 2 kbbytes eeprom ? 4 kb - 8 kbbytes internal sram ? external bus interface for up to 16mbytes sram ? external bus interface for up to 128mbit sdram ? peripheral features ? four-channel dma controller ? eight-channel event system ? eight 16-bit timer/counters ? four timer/counters with 4 output compare or input capture channels ? four timer/counters with 2 output compare or input capture channels ? high resolution extension on all timer/counters ? advanced waveform extension (awex) on two timer/counters ? eight usarts with irda support for one usart ? four two-wire interfaces with dual address match (i 2 c and smbus compatible) ? four serial peripheral interfaces (spis) ? aes and des crypto engine ? 16-bit real time counter (rtc) with separate oscillator ? two sixteen channel, 12-bit, 2msps analog to digital converters ? two two-channel, 12-bit, 1msps digital to analog converters ? four analog comparators (acs) with window compare function, and current sources ? external interrupts on all general purpose i/o pins ? programmable watchdog timer with separate on-chip ultra low power oscillator ? qtouch ? library support ? capacitive touch buttons, sliders and wheels ? special microcontroller features ? power-on reset and programmable brown-out detection ? internal and external clock op tions with pll and prescaler ? programmable multilevel interrupt controller ? five sleep modes ? programming and debug interfaces ? jtag (ieee 1149.1 compliant) interface, including boundary scan ? pdi (program and debug interface) ? i/o and packages ? 78 programmable i/o pins ? 100 lead tqfp ? 100 ball bga ? 100 ball vfbga ? operating voltage ? 1.6 ? 3.6v ? operating frequency ? 0 ? 12mhz from 1.6v ? 0 ? 32mhz from 2.7v 8/16-bit xmega a1 microcontroller atxmega128a1 / atxmega64a1 preliminary 8067o?avr?06/2013 not recommended for new designs - use xmega a1u series
2 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 ? 1. ordering information notes: 1. this device can also be supplied in wafer form. please contact your local atmel sales office for detailed ordering info rmation. 2. pb-free packaging, complies to the european directive for restri ction of hazardous substances (rohs directive). also halide f ree and fully green. 3. for packaging information, see ?packaging information? on page 70 . typical applications ordering code flash (b) e 2 sram speed (mhz) power supply package (1)(2)(3) temp atxmega128a1-au 128k + 8k 2 kb 8 kb 32 1.6 - 3.6v 100a -40 ? c - 85 ? c atxmega128a1-aur atxmega64a1-au 64k + 4k 2 kb 4 kb atxmega64a1-aur atxmega128a1-cu 128k + 8k 2 kb 8 kb 100c1 atxmega128a1cur atxmega64a1-cu 64k + 4k 2 kb 4 kb atxmega64a1-cur atxmega128a1-c7u 128k + 8k 2 kb 8 kb 100c2 atxmega128a1-c7ur atxmega64a1-c7u 64k + 4k 2 kb 4 kb atxmega64a1-c7ur package type 100a 100-lead, 14 x 14 x 1.0mm, 0.5mm lead pitch, thin profile plastic quad flat package (tqfp) 100c1 100-ball, 9 x 9 x 1.2mm body, ball pitch 0.88mm, chip ball grid array (cbga) 100c2 100-ball, 7 x 7 x 1.0mm body, ball pitch 0.65mm, very thin fine-pitch ball grid array (vfbga) industrial control climate control low power battery applications factory automation rf and zigbee ? power tools building control sensor control hvac board control optical utility metering white goods medical applications
3 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 2. pinout/block diagram figure 2-1. block diagram and pinout notes: 1. for full details on pinout and pin functions refer to ?pinout and pin functions? on page 55 . 2. vcc/gnd on pin 83/84 are swapped compared to other vcc/gnd to allow easier routing of gnd to 32khz crystal. index corner pa6 pa7 gnd avcc pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 gnd vcc pc0 pc1 pc2 pc3 pc4 pc5 pc6 pc7 gnd vcc pd0 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 pd1 pd2 pd3 pd4 pd5 pd6 pd7 gnd vcc pe0 pe1 pe2 pe3 pe4 pe5 pe6 pe7 gnd vcc pf0 pf1 pf2 pf3 pf4 pf5 pk0 vcc gnd pj7 pj6 pj5 pj4 pj3 pj2 pj1 pj0 vcc gnd ph7 ph6 ph5 ph4 ph3 ph2 ph1 ph0 vcc gnd pf7 pf6 pa5 pa4 pa3 pa2 pa1 pa0 avcc gnd pr1 pr0 reset/pdi pdi pq3 pq2 pq1 pq0 gnd vcc pk7 pk6 pk5 pk4 pk3 pk2 pk1 flash ram e 2 prom dma interrupt controlle r ocd external bus interface adc a adc b dac b dac a ac a0 ac a1 ac b0 ac b1 port a port b event system ctrl port k port j port h port q port r power contro l reset contro l watchdog osc/clk contro l bod por rtc event routing network data bu s data bu s vref temp port c cpu t/c0:1 usart0:1 twi spi port f port e port d t/c0:1 usart0/1 twi spi t/c0:1 usart0:1 twi spi t/c0:1 usart0:1 twi spi
4 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 2-2. cbga-pinout table 2-1. cbga-pinout. 1 2 3 4 5 6 7 8 9 10 a pk0 vcc gnd pj3 vcc gnd ph1 gnd vcc pf7 b pk3 pk2 pk1 pj4 ph7 ph4 ph2 ph0 pf6 pf5 c vcc pk5 pk4 pj5 pj0 ph5 ph3 pf2 pf3 vcc d gnd pk6 pk7 pj6 pj1 ph6 pf0 pf1 pf4 gnd e pq0 pq1 pq2 pj7 pj2 pe7 pe6 pe5 pe4 pe3 f pr1 pr0 reset/ pdi pdi pq3 pc2 pe2 pe1 pe0 vcc g gnd pa1 pa4 pb3 pb4 pc1 pc6 pd7 pd6 gnd h avcc pa2 pa5 pb2 pb5 pc0 pc5 pd5 pd4 pd3 j pa0 pa3 pb0 pb1 pb6 pc3 pc4 pc7 pd2 pd1 k pa6 pa7 gnd avcc pb7 vcc gnd vcc gnd pd0 a b c d e f g h j k 1 2345678910 a b c d e f g h j k 1098765432 1 top view bottom view
5 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 3. overview the atmel avr xmega is a family of low power, high perfo rmance, and peripheral rich 8/16-bit microcontrollers based on the avr enhanced risc architecture. by executing instructions in a single clock cycle, the avr xmega devices achieve cpu throughput approaching one million instructions per second (mips) per megahertz, allowing the system designer to optimize power consumption versus processing speed. the atmel avr cpu combines a rich instruction set with 32 general purpose working regi sters. all 32 registers are directly connected to the arithmetic logic unit (alu), allowing two independent registers to be accessed in a single instruction, executed in one clock cycle. the resulting architecture is more code efficient while achieving throughputs many times faster than conventional single-accumulator or cisc based microcontrollers. the avr xmega a1 devices provide the following featur es: in-system programmable flash with read-while-write capabilities; internal eeprom and sram; four-channel dma controller, eight-channel event system and programmable multilevel interrupt controller, 78 general purpose i/o lines , 16-bit real-time counter (r tc); eight flexible, 16-bit timer/counters with compare and pwm channels, eight usarts; f our two-wire serial interf aces (twis); four serial peripheral interfaces (spis); aes and des cryptographic engine; two 16-channel, 12-bit adcs with programmable gain; two 2-channel, 12-bit dacs; four analog comparators (acs ) with window mode; programmable watchdog timer with separate internal oscillator; accurate internal oscillators with pll and prescaler; and programmable brown-out detection. the program and debug interface (pdi), a fast, two-pin in terface for programming and debugging, is available. the devices also have an ieee std. 1149.1 compliant jtag interface, and this can also be used for boundary scan, on-chip debug and programming. the xmega a1 devices have five software selectable power saving modes. the idle mode stops the cpu while allowing the sram, dma controller, event system, interrupt controller, and all peripherals to continue functioning. the power- down mode saves the sram and register contents, but stops the oscillators, disabling all other functions until the next twi or pin-change interrupt, or reset. in power-save mode, t he asynchronous real-time counter continues to run, allowing the application to maintain a timer base while the rest of the device is sleeping. in standby mode, the external crystal oscillator keeps running while the rest of the device is sleeping. this allows very fast startup from the external crystal, combined with low power consumption. in extended standby mode, both the main oscillator and the asynchronous timer continue to run. to further reduce power consumption, the pe ripheral clock to each individual peripheral can optionally be stopped in active mode and idle sleep mode. atmel offers a free qtouch library for embedding capacitive touch buttons, sliders and wheels functionality into avr microcontrollers. the device are manufactured using atmel high-density, nonvol atile memory technology. the program flash memory can be reprogrammed in-system through the pdi or jtag inte rfaces. a boot loader running in the device can use any interface to download the application program to the flash memory. the boot loader software in the boot flash section will continue to run while the application flash section is updated, providing true read-while-write operation. by combining an 8/16-bit risc cpu with in-system, self -programmable flash, the avr xmega is a powerful microcontroller family that provides a highly flexible and cost effective solution for many embedded applications. all atmel avr xmega devices are supported with a full suite of program and system development tools, including c compilers, macro assemblers, program debugger/simulators, programmers, and evaluation kits.
6 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 3.1 block diagram figure 3-1. xmega a1 block diagram v bat power supervision battery backup controller real time counter 32.768 khz xosc power supervision por/bod & reset port a (8) port b (8) event routing network dma controller bus matrix sram ebi adca daca aca dacb adcb acb ocd port k (8) port j (8) port h (8) pdi watchdog timer watchdog oscillator interrupt controller data bus prog/debug controller port r (2) oscillator circuits/ clock generation oscillator control real time counter event system controller jtag sleep controller des ircom port g (8) port l (8) port q (8) port m (8) port c (8) tcc0:1 usartc0:1 twic spic port d (8) tcd0:1 usartd0:1 twid spid tcf0:1 usartf0:1 twif spif tce0:1 usarte0:1 twie spie port e (8) port f (8) event routing network aes arefa arefb port n (8) port p (8) cpu nvm controller m o r p e e h s a l f data bus int. refs. tempref digital function analog function bus masters / programming / debug oscillator / crystal / clock general purpose i/o ebi
7 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 4. resources a comprehensive set of development tools, application notes and datasheets are available for download on http://www.atmel.com/avr . 4.1 recommended reading ? xmega a manual ? xmega a application notes this device data sheet only contains part specific informati on and a short description of each peripheral and module. the xmega a manual describes the modules and peripherals in depth. the xmega a application notes contain example code and show applied use of the modules and peripherals. the xmega a manual and application notes are available from http://www.atmel.com/avr . 5. capacitive touch sensing the atmel qtouch library provides a simple to use soluti on to realize touch sensitive interfaces on most atmel avr microcontrollers. the patented charge-transfer signal acqui sition offers robust sensing and includes fully debounced reporting of touch keys and includes adjacent key suppre ssion? (aks?) technology for unambiguous detection of key events. the qtouch library includes support for the qtouch and qmatrix acquisition methods. touch sensing can be added to any application by linki ng the appropriate atmel qtouch library for the avr microcontroller. this is done by using a simple set of apis to define the touch channels and sensors, and then calling the touch sensing api?s to retrieve the channel information and determine the touch sensor states. the qtouch library is free and downloadable from the atmel website at the following location: www.atmel.com/qtouchlibrary . for implementation details and other information, refer to the qtouch library user guide - also available for download from the atmel website. 6. disclaimer for devices that are not available yet, typical values contained in this datasheet are based on simulations and characterization of other avr xmega microcontrollers manufactured on the same process technology. min. and max values will be available after the device is characterized.
8 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 7. avr cpu 7.1 features ? 8/16-bit high performance avr risc architecture ? 138 instructions ? hardware multiplier ? 32x8-bit registers directly connected to the alu ? stack in sram ? stack pointer accessible in i/o memory space ? direct addressing of up to 16m bytes of program and data memory ? true 16/24-bit access to 16/24-bit i/o registers ? support for 8-, 16- and 32-bit arithmetic ? configuration change protection of system critical features 7.2 overview all atmel avr xmega devices use the 8/16-bit avr cpu. the main function of the cpu is to execute the code and perform all calculations. the cpu is able to access memories , perform calculations, control peripherals, and execute the program in the flash memory. interrupt handling is described in a separate section, refer to ?interrupts and programmable multilevel interrupt controller? on page 29. 7.3 architectural overview in order to maximize performance and parallelism, the avr cpu uses a harvard architecture with separate memories and buses for program and data. instructions in the program memo ry are executed with single-level pipelining. while one instruction is being executed, the next instruction is pre-fe tched from the program memory. this enables instructions to be executed on every clock cycle. for details of all avr instructions, refer to http://www.atmel.com/avr.
9 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 7-1. block diagram of the avr cpu architecture. the arithmetic logic unit (alu) supports arithmetic and l ogic operations between registers or between a constant and a register. single-register operations can also be executed in t he alu. after an arithmetic operation, the status register is updated to reflect information about the result of the operation. the alu is directly connected to the fast-access register file. the 32 x 8-bit general purpose working registers all have single clock cycle access time allowing single-cycle arithmet ic logic unit (alu) operation between registers or between a register and an immediate. six of the 32 registers can be used as three 16-bit address pointers for program and data space addressing, enabling efficient address calculations. the memory spaces are linear. the data memory space and the program memory space are two different memory spaces. the data memory space is divided into i/o registers, sram, and external ram. in addition, the eeprom can be memory mapped in the data memory. all i/o status and control registers reside in the lowest 4kb addresses of the data memory. this is referred to as the i/o memory space. the lowest 64 addresses can be accessed directly, or as the data space locations from 0x00 to 0x3f. the rest is the extended i/o memory space, ranging from 0x0040 to 0x0fff. i/o registers here must be accessed as data space locations using load (ld/lds/ldd) and store (st/sts/std) instructions. the sram holds data. code execution from sram is not s upported. it can easily be accessed through the five different addressing modes supported in the avr architecture. the first sram address is 0x2000. data addresses 0x1000 to 0x1fff are reserved for memory mapping of eeprom. the program memory is divided in two sections, the applic ation program section and the boot program section. both sections have dedicated lock bits for write and read/write protection. the spm instruction that is used for self- programming of the application flash memory must reside in t he boot program section. the application section contains an application table section with separate lock bits for write and read/write protection. the application table section can be used for safe storing of nonvolatile data in the program memory.
10 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 7.4 alu - arithmetic logic unit the arithmetic logic unit (alu) supports arithmetic and l ogic operations between registers or between a constant and a register. single-register operations can also be executed. the alu operates in direct connection with all 32 general purpose registers. in a single clock cycle, arithmetic oper ations between general purpose registers or between a register and an immediate are executed and the result is stored in the r egister file. after an arithmetic or logic operation, the status register is updated to reflect information about the result of the operation. alu operations are divided into three main categories ? ar ithmetic, logical, and bit functions. both 8- and 16-bit arithmetic is supported, and the instruction set allows for efficient implementation of 32- bit aritmetic. the hardware multiplier supports signed and unsigned multiplication and fractional format. 7.4.1 hardware multiplier the multiplier is capable of multiplying two 8-bit numbers into a 16-bit result. the hardware multiplier supports different variations of signed and unsigned integer and fractional numbers: ? multiplication of unsigned integers ? multiplication of signed integers ? multiplication of a signed integer with an unsigned integer ? multiplication of unsigned fractional numbers ? multiplication of signed fractional numbers ? multiplication of a signed fractional number with an unsigned one a multiplication takes two cpu clock cycles. 7.5 program flow after reset, the cpu starts to execute instructions from t he lowest address in the flash program memory ?0.? the program counter (pc) addresses the next instruction to be fetched. program flow is provided by conditional and unconditional jump and call instructions capable of addressing the whole address space directly. most avr instructions use a 16-bit word format, while a limited number use a 32-bit format. during interrupts and subroutine calls, the return address pc is stored on the stack. the stack is allocated in the general data sram, and consequently the stack size is only limited by the total sram size and the usage of the sram. after reset, the stack pointer (sp) points to the highest address in the internal sram. the sp is read/write accessible in the i/o memory space, enabling easy implementation of multiple stacks or stack areas. the data sram can easily be accessed through the five different addressing modes supported in the avr cpu. 7.6 status register the status register (sreg) contains information about the result of the most recently executed arithmetic or logic instruction. this information can be used for altering program flow in order to perform conditional operations. note that the status register is updated after all alu operations, as specif ied in the instruction set reference. this will in many cases remove the need for using the dedicated compare instructions, resulting in faster and more compact code. the status register is not automatically stored when ente ring an interrupt routine nor restored when returning from an interrupt. this must be handled by software. the status register is accessible in the i/o memory space. 7.6.1 stack and stack pointer the stack is used for storing return addresses after interrupts and subroutine calls. it can also be used for storing temporary data. the stack pointer (sp) register always points to the top of the stack. it is implemented as two 8-bit registers that are accessible in the i/o memory space. data are pushed and popped from the stack using the push and pop instructions. the stack grows from a higher memory locati on to a lower memory location. this implies that pushing data onto the stack decreases the sp, and popping data off the stack increases the sp. the sp is automatically loaded
11 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 after reset, and the initial value is the highest address of the internal sram. if the sp is changed, it must be set to point above address 0x2000, and it must be defined before any subr outine calls are executed or before interrupts are enabled. during interrupts or subroutine calls, the return address is automatically pushed on the stack. the return address can be two or three bytes, depending on program memory size of the device. for devices with 128kb or less of program memory, the return address is two bytes, and hence the stack pointer is decremented/incremented by two. for devices with more than 128kb of program memory, the return address is three bytes, and hence the sp is decremented/incremented by three. the return address is popped off the stack when returning from interrupts using the reti instruction, and from subroutine calls using the ret instruction. the sp is decremented by one when data are pushed on the stack with the push instruction, and incremented by one when data is popped off the stack using the pop instruction. to prevent corruption when updating the stack pointer from software, a write to spl will automatically disable interrupts for up to four instructions or until the next i/o memory write. after reset the stack pointer is initialized to the highest address of the sram. see table 8-2 on page 15 . 7.7 register file the register file consists of 32 x 8-bit general purpose worki ng registers with single clock cycle access time. the register file supports the following input/output schemes: ? one 8-bit output operand and one 8-bit result input ? two 8-bit output operands and one 8-bit result input ? two 8-bit output operands and one 16-bit result input ? one 16-bit output operand and one 16-bit result input six of the 32 registers can be used as three 16-bit address r egister pointers for data space addressing, enabling efficient address calculations. one of these address pointers can also be used as an address pointer for lookup tables in flash program memory.
12 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 8. memories 8.1 features ? flash program memory ? one linear address space ? in-system programmable ? self-programming and bootloader support ? application section for application code ? application table section for appl ication code or data storage ? boot section for application code or bootloader code ? separate lock bits and protection for all sections ? built in fast crc check of a select able flash program memory section ? data memory ? one linear address space ? single cycle access from cpu ? sram ? eeprom ? byte and page accessible ? optional memory mapping for direct load and store ? i/o memory ? configuration and status registers for all peripherals and modules ? 16 bit-accessible general purpose register for global variables or flags ? external memory support ? sram ? sdram ? memory mapped external hardware ? bus arbitration ? safe and deterministic handling of cpu and dma controller priority ? separate buses for sram, eeprom, i/o memory and external memory access ? simultaneous bus access for cpu and dma controller ? production signature row memory for factory programmed data ? device id for each micr ocontroller device type ? serial number for each device ? oscillator calibration bytes ? adc, dac and temperature sensor calibration data ? user signature row ? one flash page in size ? can be read and written from software ? content is kept after chip erase 8.2 overview the atmel avr architecture has two main memory spaces, the program memory and the data memory. executable code can reside only in the program memory, while data can be stored in the program memory and the data memory. the data memory includes the internal sram, and eeprom for nonvol atile data storage. all memory spaces are linear and require no memory bank switching. nonvolatile memory (n vm) spaces can be locked for further write and read/write operations. this prevents unrestricted access to the application software. a separate memory section contains the fuse bytes. these are used for configuring important system functions, and can only be written by an external programmer.
13 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 the available memory size configurations are shown in ?ordering information? on page 2 . in addition each device has a flash memory signature rows for calibration data, device identification, serial number etc. 8.3 in-system programmabl e flash program memory he atmel avr xmega devices contain on-chip, in-system repr ogrammable flash memory for program storage. the flash memory can be accessed for read and write from an external programmer through the pdi or from application software running in the device. all avr cpu instructions are 16 or 32 bits wide, and each flas h location is 16 bits wide. the flash memory is organized in two main sections, the application section and the boot loader section. the sizes of the different sections are fixed, but device-dependent. these two sections have separate lock bits, and can have different levels of protection. the store program memory (spm) instruction, which is used to write to the flash from the application software, will only operate when executed from the boot loader section. the application section contains an application table section with separate lock settings. this enables safe storage of nonvolatile data in the program memory. figure 8-1. flash program memory (hexadecimal address) 8.3.1 application section the application section is the section of the flash that is used for storing the executable application code. the protection level for the application section can be selected by the boot lock bits for this section. the application section can not store any boot loader code since the spm instruction cannot be executed from the application section. 8.3.2 application table section the application table section is a part of the application sect ion of the flash memory that can be used for storing data. the size is identical to the boot loader section. the protection level for the application table section can be selected by the boot lock bits for this section. the possibilities for different protection levels on the application section and the application table section enable safe parameter storage in the program memory. if this section is not used for data, application code can reside here. 8.3.3 boot loader section while the application section is used for storing the application code, the boot loader software must be located in the boot loader section because the spm instruction can only initiate programming when executing fr om this section. the spm instruction can access the entire flash, including the boot lo ader section itself. the protection level for the boot loader section can be selected by the boot loader lock bits. if this section is not used for boot loader software, application code can be stored here. word address atxega128a1 atxmega64a1 00 application section (bytes) (128k/64k) ... efff / 77ff f000 / 7800 application table section (bytes) (8k/4k) ffff / 7fff 10000 / 8000 boot section (bytes) (8k/4k) 10fff / 87ff
14 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 8.3.4 production signature row the production signature row is a separate memory section for factory programmed data. it contains calibration data for functions such as oscillators and analog modules. some of the calibration values will be automatically loaded to the corresponding module or peripheral unit during reset. other va lues must be loaded from the signature row and written to the corresponding peripheral registers from software. for details on calibration conditions, refer to ?electrical characteristics? on page 76. the production signature row also contains an id that identif ies each microcontroller device type and a serial number for each manufactured device. the serial number consists of the production lot number, wafer number, and wafer coordinates for the device. the device id for the available devices is shown in table 8-1 . the production signature row cannot be written or erased, but it can be read from application software and external programmers. table 8-1. device id bytes. 8.3.5 user signature row the user signature row is a separate memory section that is fully accessible (read and write) from application software and external programmers. it is one flash page in size, and is mean t for static user parameter storage, such as calibration data, custom serial number, identification numbers, random number seeds, etc. this section is not erased by chip erase commands that erase the flash, and requires a dedicated erase command. this ensures parameter storage during multiple program/erase operations and on-chip debug sessions. 8.4 fuses and lock bits the fuses are used to configure important system functions , and can only be written from an external programmer. the application software can read the fuses. the fuses are used to configure reset sources such as brownout detector and watchdog, startup configuration, jtag enable, and jtag user id. the lock bits are used to set protection levels for the different flash sections (that is, if read and/or write access should b e blocked). lock bits can be written by external programmers and application software, but only to stricter protection levels. chip erase is the only way to erase the lock bits. to ensure that flash contents are protected even during chip erase, the lock bits are erased after the rest of the flash memory has been erased. an unprogrammed fuse or lock bit will have the value one, whil e a programmed fuse or lock bit will have the value zero. both fuses and lock bits are reprogrammable like the flash program memory. 8.5 data memory the data memory contains the i/o memory, internal sram , optionally memory mapped eeprom, and external memory if available. the data memory is organized as one continuous memory section, see figure 8-2 on page 15 . to simplify development, i/o memory, eeprom and sram will always hav e the same start addresses for all atmel avr xmega devices. the address space for external memory will always start at the end of internal sram and end at address 0xffffff. device device id bytes byte 2 byte 1 byte 0 atxmega64a1 4e 96 1e atxmega128a1 4c 97 1e
15 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 8-2. data memory map (hexadecimal address) 8.6 eeprom xmega au devices have eeprom for nonvolatile data storage. it is either addressable in a separate data space (default) or memory mapped and accessed in normal data space. the eeprom supports both byte and page access. memory mapped eeprom allows highly efficient eepr om reading and eeprom buffer loading. when doing this, eeprom is accessible using load and store instructions . memory mapped eeprom will always start at hexadecimal address 0x1000. 8.7 i/o memory the status and configuration registers for peripherals and modules, including the cpu, are addressable through i/o memory locations. all i/o locations can be accessed by the load (ld/lds/ldd) and store (st/sts/std) instructions, which is used to transfer data between the 32 registers in the register file and the i/o memory. the in and out instructions can address i/o memory locations in the range 0x00 - 0x3f directly. in the address range 0x00 - 0x1f, single- cycle instructions for manipulation and checking of individual bits are available. the i/o memory address for all peripherals and modules in xmega a1u is shown in the ?peripheral module address map? on page 62 . 8.7.1 general purpose i/o registers the lowest 16 i/o memory addresses are reserved as general purpose i/o registers. these registers can be used for storing global variables and flags, as they are directly bit- accessible using the sbi, cbi, sbis, and sbic instructions. 8.8 external memory four ports can be used for external memory, supporting external sram, sdram, and memory mapped peripherals such as lcd displays. refer to ?ebi ? external bus interface? on page 47 . the external memory address space will always start at the end of internal sram. 8.9 data memory and bus arbitration since the data memory is organized as four separate sets of memories, the different bus masters (cpu, dma controller read and dma controller write, etc.) can access different memory sections at the same time. byte address atxmega128a1 byte address atxmega64a1 0 i/o registers (4 kb) 0 i/o registers (4 kb) fff fff 1000 eeprom (2 kb) 1000 eeprom (2 kb) 17ff 17ff reserved reserved 2000 internal sram (8 kb) 2000 internal sram (4 kb) 3fff 2fff 4000 external memory (0 to 16 mb) 3000 external memory (0 to 16 mb) ffffff ffffff
16 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 8.10 memory timing read and write access to the i/o memory takes one cpu clock cycle. a write to sram takes one cycle, and a read from sram takes two cycles. for burst read (dma), new data are available every cycle. eeprom page load (write) takes one cycle, and three cycles are required for read. for burst read, new data are available every second cycle. external memory has multi-cycle read and write. the number of cycles depends on the type of memory and configuration of the external bus interface. refer to the instruction summary for more details on instructions and instruction timing. 8.11 device id and revision each device has a three-byte device id. this id identifies atmel as the manufacturer of the device and the device type. a separate register contains the revision number of the device. 8.12 i/o memory protection some features in the device are regarded as critical for safety in some applications. due to this, it is possible to lock the i/o register related to the clock system, the event system, and the advanced waveform extensions. as long as the lock is enabled, all related i/o registers are locked and they can not be written from the application software. the lock registers themselves are protected by the configuration change protection mechanism. 8.13 jtag disable it is possible to disable the jtag interface from the application software. this will prevent all external jtag access to the device until the next device reset or until jtag is enabled again from the application software. as long as jtag is disabled, the i/o pins required for jtag can be used as normal i/o pins. 8.14 flash and eeprom page size the flash program memory and eeprom data memory are or ganized in pages. the pages are word accessible for the flash and byte accessible for the eeprom. table 8-2 shows the flash program memory organization. flash write and erase operations are performed on one page at a time, while reading the flash is done one byte at a time. for flash access the z-pointer (z[m:n]) is used for addressing. the most significant bits in the address (fpage) gives the page number and the least significant address bits (fword) gives the word in the page. table 8-2. number of words and pages in the flash. table 8-3 shows eeprom memory organization for the atme l avr xmega a1u devices. eeprom write and erase operations can be performed one page or one byte at a time, while reading the eeprom is done one byte at a time. for eeprom access the nvm address register (addr[m:n]) is used for addressing. the most significant bits in the address (e2page) give the page number and the least signific ant address bits (e2byte) give the byte in the page. device pc size flash page size fword fpage application boot bits bytes words size no of pages size no of pages atxmega64a1 16 64k + 4k 128 z[7:1] z[16:8] 64k 256 4k 16 atxmega128a1 17 128k+ 8k 256 z[8:1] z[17:9] 128k 256 8k 16
17 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 table 8-3. number of bytes and pages in the eeprom. 8.14.1 i/o memory all peripherals and modules are addressable through i/o memory locations in the data memory space. all i/o memory locations can be accessed by the load (ld/lds/ldd) and stor e (st/sts/std) instructions, transferring data between the 32 general purpose registers in the cpu and the i/o memory. the in and out instructions can address i/o memory locations in the range 0x00 - 0x3f directly. i/o registers within the address range 0x00 - 0x1f are direct ly bit-accessible using the sbi and cbi instructions. the value of single bits can be checked by using the sbis and sbic instructions on these registers. the i/o memory address for all peripherals and modules in xmega a1 is shown in the ?peripheral module address map? on page 62 . device eeprom page size e2byte e2page no of pages size bytes atxmega64a1 2 kb 32 addr[4:0] addr[10:5] 64 atxmega128a1 2 kb 32 addr[4:0 addr[10:5] 64
18 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 9. dmac - direct memory access controller 9.1 features ? allows high-speed data transfer ? from memory to peripheral ? from memory to memory ? from peripheral to memory ? from peripheral to peripheral ? 4 channels ? from 1 byte and up to 16m bytes transfers in a single transaction ? multiple addressing modes for source and destination address ? increment ? decrement ? static ? 1, 2, 4, or 8 byte burst transfers ? programmable priority between channels 9.2 overview the four-channel direct memory access (dma) controller can transfer data between memories and peripherals, and thus offload these tasks from the cpu. it enables high data transfer rates with minimum cpu intervention, and frees up cpu time. the four dma channels enable up to four independent and parallel transfers. the dma controller can move data between sram and peripherals, between sram locations and directly between peripheral registers. with access to all peripherals, the dma controller can handle automatic transfer of data to/from communication modules. the dma controller can also read from memory mapped eeprom. data transfers are done in continuous bursts of 1, 2, 4, or 8 by tes. they build block transfers of configurable size from 1 byte to 64kb. a repeat counter can be used to repeat each bl ock transfer for single transactions up to 16mb. source and destination addressing can be static, incremental or decre mental. automatic reload of source and/or destination addresses can be done after each burst or block transfer, or when a transaction is complete. application software, peripherals, and events can trigger dma transfers. the four dma channels have individual configuration and c ontrol settings. this include source, destination, transfer triggers, and transaction sizes. they have individual in terrupt settings. interrupt requests can be generated when a transaction is complete or when the dma controller detects an error on a dma channel. to allow for continuous transfers, two channels can be interlinked so that the second takes over the transfer when the first is finished, and vice versa.
19 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 10. event system 10.1 features ? inter-peripheral communication and signalling with minimum latency ? cpu and dma independent operation ? 8 event channels allows for up to 8 signals to be routed at the same time ? events can be generated by ? timer/counters (tcxn) ? real time counter (rtc) ? analog to digital converters (adcx) ? analog comparators (acx) ? ports (portx) ? system clock (clk sys ) ? software (cpu) ? events can be used by ? timer/counters (tcxn) ? analog to digital converters (adcx) ? digital to analog converters (dacx) ? ports (portx) ? dma controller (dmac) ? ir communication module (ircom) ? the same event can be used by multiple peripherals for synchronized timing ? advanced features ? manual event generation from software (cpu) ? quadrature decoding ? digital filtering ? functions in active and idle mode 10.2 overview the event system is a set of features for inter-peripheral communication. it enables the possibility for a change of state in one peripheral to automatically trigger actions in one or more peripherals. these changes in a peripheral that will trigger actions in other peripherals are configurable by soft ware. it is a simple, but powerful system as it allows for autonomous control of peripherals without any use of interrupts, cpu or dma resources. the indication of a change in a peripheral is referred to as an event, and is usually the same as the interrupt conditions for that peripheral. events are passed between peripherals usi ng a dedicated routing network called the event routing network. figure 10-1 on page 20 shows a basic block diagram of the event system with the event routing network and the peripherals to which it is connected. this highly flexible system can be used for simple routing of signals, pin functions or for sequencing of events. the maximum latency is two cpu clock cycles from when an event is generated in one peripheral, until the actions are triggered in one or more other peripherals. the event system is functional in both active and idle modes.
20 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 10-1. event system block diagram. he event routing network consists of eight software-confi gurable multiplexers that control how events are routed and used. these are called event channels, and allow for up to eight parallel event routing configurations. the maximum routing latency is two peripheral clock cycles. the event system works in both active mode and idle sleep mode. dac timer / counters adc real time counter port pins cpu / software dma controller ircom event routing network event system controller clk per prescaler ac
21 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 11. system clock and clock options 11.1 features ? fast start-up time ? safe run-time clock switching ? internal oscillators: ? 32 mhz run-time calibrated rc oscillator ? 2 mhz run-time calibrated rc oscillator ? 32.768 khz calibrat ed rc oscillator ? 32 khz ultra low power (ulp) oscillator with 1 khz ouput ? external clock options ? 0.4 - 16 mhz crystal oscillator ? 32 khz crystal oscillator ? external clock ? pll with internal and external clock options with 1 to 31x multiplication ? clock prescalers with 1x to 2048x division ? fast peripheral clock running at two and four times the cpu clock speed ? automatic run-time calibration of internal oscillators ? crystal oscillator failure detection 11.2 overview atmel avr xmega devices have a flexible clock system supporting a large number of clock sources. it incorporates both accurate internal oscillators and external crysta l oscillator and resonator support. a high-frequency phase locked loop (pll) and clock prescalers can be used to generate a wi de range of clock frequencies. an oscillator failure monitor can be enabled to issue a non-maskable interrupt and switch to the internal oscillator if the external oscillator or pll fails. when a reset occurs, all clock sources except the 32khz ultra low power oscillator are disabled. after reset, the device will always start up running from the 2mhz internal oscill ator. during normal operation, the system clock source and prescalers can be changed from software at any time. figure 11-1 on page 22 presents the principal clock system in the xmega a1u family devices. not all of the clocks need to be active at a given time. the clocks for the cpu and peripherals can be stopped using sleep modes and power reduction registers as described in ?power management and sleep modes? on page 24 .
22 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 11-1. the clock system, clo ck sources and clock distribution 11.3 clock options the clock sources are divided in two main groups: internal oscillators and external clock sources. most of the clock sources can be directly enabled and disabled from softwa re, while others are automatically enabled or disabled, depending on peripheral settings. after reset, the device starts up running from the 2mhz internal oscillator. the other clock sources and pll are turned off by default. the internal oscillators do not require any external component s to run. for details on characteristics and accuracy of the internal oscillators, refer to the device datasheet. 11.3.1 32 khz ultra low po wer internal oscillator this oscillator provides an approximate 32khz clock. the 32khz ultra low power (ulp) internal oscillator is a very low power clock source, and it is not designed for high accuracy. the oscillator employs a built-in prescaler that provides a 1khz output. the oscillator is automatically enabled/disabled when it is used as clock source for any part of the device. this oscillator can be selected as the clock source for the rtc. real time counter peripherals ram avr cpu non-volatile memory watchdog timer brown-out detector system clock prescalers system clock multiplexer (sclksel) pllsrc rtcsrc div32 32 khz int. ulp 32.768 khz int. osc 32.768 khz tosc 2 mhz int. osc 32 mhz int. osc 0.4 ? 16 mhz xtal div32 div32 div4 xoscsel pll tosc1 tosc2 xtal1 xtal2 clk sys clk rtc clk per2 clk per clk cpu clk per4
23 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 11.3.2 32.768 khz calibrat ed internal oscillator this oscillator provides an approximate 32.768khz clock. it is calibrated during production to provide a default frequency close to its nominal frequency. the calibration register can also be written from software for run-time calibration of the oscillator frequency. the oscillator employs a built-in pre scaler, which provides both a 32.768khz output and a 1.024khz output. 11.3.3 32.768 khz crystal oscillator a 32.768khz crystal oscillator can be connected between the 1 and 2 pins and enables a dedicated low frequency oscillator input circuit. a low power mode with reduced voltage swing on 2 is available. this oscillator can be used as a clock source for the system clock and rtc. 11.3.4 0.4 - 16 mhz crystal oscillator this oscillator can operate in four different modes optimized for different frequency ranges, all within 0.4 - 16mhz. 11.3.5 2 mhz run-time calibr ated internal oscillator the 2mhz run-time calibrated internal oscillator is a high frequency oscillator. it is calibrated during production to provide a default frequency which is close to its nominal frequency. the oscillator can use the 32khz calibrated internal oscillator or the 32khz crystal oscillator as a source for calibrating the frequency run-time to compensate for temperature and voltage drift hereby optimizing the accuracy of the oscillator. 11.3.6 32 mhz run-time cali brated internal oscillator the 32mhz run-time calibrated internal oscillator is a hi gh frequency oscillator. it is calibrated during production to provide a default frequency which is close to its nominal frequency. the oscillator can use the 32khz calibrated internal oscillator or the 32khz crystal oscillator as a source for calibrating the frequency run-time to compensate for temperature and voltage drift hereby optimizing the accuracy of the oscillator. 11.3.7 external clock input the xtal1 and xtal2 pins can be used to drive an external oscillator, either a quartz crystal or a ceramic resonator. xtal1 can be used as input for an external clock signal. t he 1 and 2 pins is dedicated to driving a 32.768khz crystal oscillator. 11.3.8 pll with multiplication factor 1 - 31x the built-in phase locked loop (pll) can be used to generat e a high-frequency system clock. the pll has a user- selectable multiplication factor of from 1 to 31. in combin ation with the prescalers, this gives a wide range of output frequencies from all clock sources.
24 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 12. power management and sleep modes 12.1 features ? power management for adjusting power consumption and functions ? 5 sleep modes ? idle ? power-down ? power-save ? standby ? extended standby ? power reduction register to disable clock and turn off unused peripherals in active and idle modes 12.2 overview various sleep modes and clock gating are provided in order to tailor power consumption to application requirements. this enables the atmel avr xmega microcontroller to stop unused modules to save power. all sleep modes are available and can be entered from active mode. in active mode, the cpu is executing application code. when the device enters sleep mode, program execution is stopped and interrupts or a reset is used to wake the device again. the application code decides which sleep m ode to enter and when. interrupts from enabled peripherals and all enabled reset sources can restore the microcontroller from sleep to active mode. in addition, power reduction registers provide a method to st op the clock to individual peripherals from software. when this is done, the current state of the peripheral is frozen, and there is no power consumption from that peripheral. this reduces the power consumption in active mode and idle sleep modes and enables much more fine-tuned power management than sleep modes alone. 12.3 sleep modes sleep modes are used to shut down modules and clock domains in the microcontroller in order to save power. xmega microcontrollers have five different sleep modes tuned to match the typical functional stages during application execution. a dedicated sleep instruction (sleep) is avail able to enter sleep mode. interrupts are used to wake the device from sleep, and the available interrupt wake-up sources are dependent on the configured sleep mode. when an enabled interrupt occurs, the device will wake up and execute the interrupt service routine before continuing normal program execution from the first instruction after the sleep instruction. if other, higher priority interrupts are pending when the wake-up occurs, their interrupt service routines will be executed according to their priority before the interrupt service routine for the wake-up interrupt is executed. after wake-up, the cpu is halted for four cycles before execution starts. the content of the register file, sram and registers are kept during sleep. if a reset occurs during sleep, the device will reset, start up, and execute from the reset vector. 12.3.1 idle mode in idle mode the cpu and nonvolatile memory are stopped (note that any ongoing programming will be completed), but all peripherals, including the interrupt controller, event system and dma controller are kept running. any enabled interrupt will wake the device. 12.3.2 power-down mode in power-down mode, all clocks, including the real-time count er clock source, are stopped. this allows operation only of asynchronous modules that do not require a running clock. the only interrupts that can wake up the mcu are the two- wire interface address match interrupt and asynchronous port interrupts, e.g pin change.
25 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 12.3.3 power-save mode power-save mode is identical to power down, with one excepti on. if the real-time counter (rtc) is enabled, it will keep running during sleep, and the device can also wake up from either an rtc overflow or compare match interrupt. 12.3.4 standby mode standby mode is identical to power down, with the exception that the enabled system clock sources are kept running while the cpu, peripheral, and rtc clocks are stopped. this reduces the wake-up time. 12.3.5 extended standby mode extended standby mode is identical to power-save mode, with the exception that the enabled system clock sources are kept running while the cpu and peripheral clocks are stopped. this reduces the wake-up time.
26 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 13. system control and reset 13.1 features ? multiple reset sources for safe operation and device reset ? power-on reset ? external reset ? watchdog reset ? brown-out reset ? pdi reset ? software reset ? asynchronous reset ? no running clock in the device is required for reset ? reset status register 13.2 overview the reset system issues a microcontroller reset and sets the device to its initial state. this is for situations where operation should not start or continue, such as when the micr ocontroller operates below its power supply rating. if a reset source goes active, the device enters and is kept in reset until all reset sources have released their reset. the i/o pins are immediately tri-stated. the program counter is set to the reset vector location, and all i/o registers are set to their initial values. the sram content is kept. however, if the device accesses the sram when a reset occurs, the content of the accessed location can not be guaranteed. after reset is released from all reset sources, the default oscillator is started and calibrated before the device starts running from the reset vector address. by default, this is the lowest program memory address, 0, but it is possible to move the reset vector to the lowest address in the boot section. the reset functionality is asynchronous, and so no running syst em clock is required to reset the device. the software reset feature makes it possible to issue a controlled system reset from the user software. the reset status register has individual status flags fo r each reset source. it is cleared at power-on reset, and shows which sources have issued a reset since the last power-on. 13.3 reset sequence a reset request from any reset source will immediately rese t the device and keep it in reset as long as the request is active. when all reset requests are released, the device will go through three stages before the device starts running again: ? reset counter delay ? oscillator startup ? oscillator calibration if another reset requests occurs during this process, the reset sequence will start over again. 13.4 reset sources 13.4.1 power-on reset ta power-on reset (por) is generated by an on-chip det ection circuit. the por is activated when the v cc rises and reaches the por threshold voltage (v pot ), and this will start the reset sequence. the por is also activated to power down the device properly when the v cc falls and drops below the v pot level. the v pot level is higher for falling v cc than for rising v cc . consult the datasheet for por characteristics data.
27 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 13.4.2 brownout detection the on-chip brownout detection (bod) circuit monitors the v cc level during operation by comparing it to a fixed, programmable level that is selected by the bodlevel fuses. if disabled, bod is forced on at the lowest level during chip erase and when the pdi is enabled. 13.4.3 external reset the external reset circuit is connected to the external reset pin. the external reset will trigger when the reset pin is driven below the reset pin threshold voltage, v rst , for longer than the minimum pulse period, t ext . the reset will be held as long as the pin is kept low. the reset pin includes an internal pull-up resistor. 13.4.4 watchdog reset the watchdog timer (wdt) is a system function for monitoring correct program operation. if the wdt is not reset from the software within a programmable timeout period, a watchdog reset will be given. the watchdog reset is active for one to two clock cycles of the 2mhz internal oscillator. for more details see ?wdt - watchdog timer? on page 28 . 13.4.5 software reset the software reset makes it possible to issue a system reset from software by writing to the software reset bit in the reset control register.the reset will be issued within two cpu clock cycl es after writing the bit. it is not possible to execute any instruction from when a software reset is requested until it is issued. 13.4.6 program and debug interface reset the program and debug interface reset contains a separate reset source that is used to reset the device during external programming and debugging. this reset source is acce ssible only from external debuggers and programmers.
28 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 13.5 wdt - watchdog timer 13.5.1 features ? issues a device reset if the timer is not reset before its timeout period ? asynchronous operation from dedicated oscillator ? 1khz output of the 32khz ultra low power oscillator ? 11 selectable timeout periods, from 8ms to 8s ? two operation modes: ? normal mode ? window mode ? configuration lock to prevent unwanted changes 13.6 overview the watchdog timer (wdt) is a system function for monitoring correct program operation. it makes it possible to recover from error situations such as runaway or deadlocked code. the wdt is a timer, configured to a predefined timeout period, and is constantly running when enabled. if the wdt is not reset within the timeout period, it will issue a microcontroller reset. the wdt is reset by executing the wdr (watchdog timer reset) instruction from the application code. the window mode makes it possible to define a time slot or window inside the total timeout period during which wdt must be reset. if the wdt is reset outside this window, either too early or too late, a system reset will be issued. compared to the normal mode, this can also catch situatio ns where a code error causes constant wdr execution. the wdt will run in active mode and all sleep modes, if e nabled. it is asynchronous, runs from a cpu-independent clock source, and will continue to operate to issue a system reset even if the main clocks fail. the configuration change protection mechanism ensures that the wdt settings cannot be changed by accident. for increased safety, a fuse for locking the wdt settings is also available.
29 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 14. interrupts and programmable multilevel interrupt controller 14.1 features ? short and predictable interrupt response time ? separate interrupt configuration and vector address for each interrupt ? programmable multilevel interrupt controller ? interrupt prioritizing according to level and vector address ? three selectable interrupt levels for all interrupts: low, medium and high ? selectable, round-robin priority scheme within low-level interrupts ? non-maskable interrupts for critical functions ? interrupt vectors optionally placed in the application section or the boot loader section 14.2 overview interrupts signal a change of state in peripherals, and this c an be used to alter program execution. peripherals can have one or more interrupts, and all are individually enabled and configured. when an interrupt is enabled and configured, it will generate an interrupt request when the interrupt condition is present. the programmable multilevel interrupt controller (pmic) controls the handling and prioritizing of interrupt requests. when an interrupt request is acknowledged by the pmic, the program counter is set to point to t he interrupt vector, and the interrupt handler can be executed. all peripherals can select between three different priority leve ls for their interrupts: low, medium, and high. interrupts are prioritized according to their level and their interrupt vect or address. medium-level interrupts will interrupt low-level interrupt handlers. high-level interrupts wil l interrupt both medium- and low-level interrupt handlers. within each level, the interrupt priority is decided from the interrupt vector addres s, where the lowest interrupt vector address has the highest interrupt priority. low-level interrupts have an optional r ound-robin scheduling scheme to ensure that all interrupts are serviced within a certain amount of time. non-maskable interrupts (nmi) are also supported, and can be used for system critical functions. 14.3 interrupt vectors the interrupt vector is the sum of the peripheral?s base interrupt address and the offset address for specific interrupts in each peripheral. the base addresses for the atmel avr xmega a1u devices are shown in table 14-1 . offset addresses for each interrupt available in the peripheral are described for each peripheral in the xmega au manual. for peripherals or modules that have only one interrupt, the interrupt vector is shown in table 14-1 . the program address is the word address. table 14-1. reset and interrupt vectors program address (base address) source interrupt description 0x000 reset 0x002 oscf_int_vect crystal oscillator failure interrupt vector (nmi) 0x004 portc_int_base port c interrupt base 0x008 portr_int_base port r interrupt base 0x00c dma_int_base dma controller interrupt base 0x014 rtc_int_base real time counter interrupt base 0x018 twic_int_base two-wire interface on port c interrupt base
30 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 0x01c tcc0_int_base timer/counter 0 on po rt c interrupt base 0x028 tcc1_int_base timer/counter 1 on po rt c interrupt base 0x030 spic_int_vect spi on port c interrupt vector 0x032 usartc0_int_base usart 0 on port c interrupt base 0x038 usartc1_int_base usart 1 on port c interrupt base 0x03e aes_int_vect aes interrupt vector 0x040 nvm_int_base non-volatile memory interrupt base 0x044 portb_int_base port b interrupt base 0x048 acb_int_base analog comparator on port b interrupt base 0x04e adcb_int_base analog to digital converter on port b interrupt base 0x056 porte_int_base port e interrupt base 0x05a twie_int_base two-wire interface on port e interrupt base 0x05e tce0_int_base timer/counter 0 on po rt e interrupt base 0x06a tce1_int_base timer/counter 1 on po rt e interrupt base 0x072 spie_int_vect spi on port e interrupt vector 0x074 usarte0_int_base usart 0 on port e interrupt base 0x07a usarte1_int_base usart 1 on port e interrupt base 0x080 portd_int_base port d interrupt base 0x084 porta_int_base port a interrupt base 0x088 aca_int_base analog comparator on port a interrupt base 0x08e adca_int_base analog to digital converter on port a interrupt base 0x096 twid_int_base two-wire interface on port d interrupt base 0x09a tcd0_int_base timer/counter 0 on po rt d interrupt base 0x0a6 tcd1_int_base timer/counter 1 on po rt d interrupt base 0x0ae spid_int_vector spi on port d interrupt vector 0x0b0 usartd0_int_base usart 0 on port d interrupt base 0x0b6 usartd1_int_base usart 1 on port d interrupt base 0x0bc portq_int_base port q int base 0x0c0 porth_int_base port h int base 0x0c4 portj_int_base port j int base 0x0c8 portk_int_base port k int base 0x0d0 portf_int_base port f int base 0x0d4 twif_int_base two-wire interface on port f int base program address (base address) source interrupt description
31 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 0x0d8 tcf0_int_base timer/counter 0 on port f interrupt base 0x0e4 tcf1_int_base timer/counter 1 on port f interrupt base 0x0ec spif_int_vector spi ion port f interrupt base 0x0ee usartf0_int_base usart 0 on port f interrupt base 0x0f4 usartf1_int_base usart 1 on port f interrupt base program address (base address) source interrupt description
32 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 15. i/o ports 15.1 features ? 78 general purpose input and output pins with individual configuration ? output driver with configurable driver and pull settings: ? totem-pole ? wired-and ? wired-or ? bus-keeper ? inverted i/o ? input with synchronous and/or asynchronous sensing with interrupts and events ? sense both edges ? sense rising edges ? sense falling edges ? sense low level ? optional pull-up and pull-down resistor on input and wired-or/and configurations ? optional slew rate control ? asynchronous pin change sensing that can wake the device from all sleep modes ? two port interrupts with pin masking per i/o port ? efficient and safe access to port pins ? hardware read-modify-write through de dicated toggle/clear/set registers ? configuration of multiple pins in a single operation ? mapping of port registers into bit-accessible i/o memory space ? peripheral clocks output on port pin ? real-time counter clock output to port pin ? event channels can be output on port pin ? remapping of digital peripheral pin functions ? selectable usart, spi, and timer/counter input/output pin locations 15.2 overview one port consists of up to eight port pins: pin 0 to 7. each port pin can be configured as input or output with configurable driver and pull settings. they also implement synchronous an d asynchronous input sensing with interrupts and events for selectable pin change conditions. asynchronous pin-change sensin g means that a pin change can wake the device from all sleep modes, included the modes where no clocks are running. all functions are individual and configurable per pin, but se veral pins can be configured in a single operation. the pins have hardware read-modify-write (rmw) functionality for safe and correct change of drive value and/or pull resistor configuration. the direction of one port pin can be changed without unintentionally changing the direction of any other pin. the port pin configuration also controls input and output selection of other device functions. it is possible to have both the peripheral clock and the real-time clock output to a port pin, and available for external use. the same applies to events from the event system that can be used to synchronize and control external functions. other digital peripherals, such as usart, spi, and timer/counters, can be remapped to selectabl e pin locations in order to optimize pin-out versus application needs. the notation of these ports are porta, portb, portc, portd, porte, portf, porth, portj, portk, portq and portr.
33 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 15.3 output driver all port pins (pn) have programmable output configuration. the port pins also have configurable slew rate limitation to reduce electromagnetic emission. 15.3.1 push-pull figure 15-1. i/o configuration - totem-pole 15.3.2 pull-down figure 15-2. i/o configuration - totem-pole with pull-down (on input) 15.3.3 pull-up figure 15-3. i/o configuration - totem-pole with pull-up (on input) inn outn dirn pn inn outn dirn pn inn outn dirn pn
34 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 15.3.4 bus-keeper the bus-keeper?s weak output produces the same logical level as the last output level. it acts as a pull-up if the last level was ?1?, and pull-down if the last level was ?0?. figure 15-4. i/o configuration - totem-pole with bus-keeper 15.3.5 others figure 15-5. output configuration - wired-or with optional pull-down figure 15-6. i/o conf iguration - wired-and wi th optional pull-up inn outn dirn pn inn outn pn inn outn pn
35 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 15.4 input sensing input sensing is synchronous or asynchronous depending on the enabled clock for the ports, and the configuration is shown in figure 15-7 on page 35 . figure 15-7. input sensing system overview when a pin is configured with inverted i/o the pin value is inverted before the input sensing. 15.5 port interrupt each ports have two interrupts with seperate priority and inte rrupt vector. all pins on the port can be individually selected as source for each of the interrupts. the interrupts are then triggered according to the input sense configuration for each pin configured as source for the interrupt. 15.6 alternate port functions in addition to the input/output functions on all port pins, mo st pins have alternate functions. this means that other modules or peripherals connected to the port can use the port pins for their functions, such as communication or pulse- width modulation. ?pinout and pin functions? on page 55 shows which modules on peripherals that enables alternate functions on a pin, and what alternate functions that is available on a pin. inverted i/o interrupt control ireq event pn d q r d q r synchronizer inn edge detect asynchronous sensing synchronous sensing edge detect
36 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 16. t/c - 16-bit timer/counter 16.1 features ? eight 16-bit timer/counters ? four timer/counters of type 0 ? four timer/counters of type 1 ? four compare or capture (cc) channels in timer/counter 0 ? two compare or capture (cc) channels in timer/counter 1 ? double buffered timer period setting ? double buffered compare or capture channels ? waveform generation: ? single slope pulse width modulation ? dual slope pulse width modulation ? frequency generation ? input capture: ? input capture with noise cancelling ? frequency capture ? pulse width capture ? 32-bit input capture ? event counter with direction control ? timer overflow and timer error interrupts and events ? one compare match or capture interrupt and event per cc channel ? supports dma operation ? hi-resolution extension (hi-res) ? advanced waveform extension (awex) 16.2 overview atmel avr xmega devices have a set of eight flexible 16-bi t timer/counters (tc). their capabilities include accurate program execution timing, frequency and waveform generation, and input capture with time and frequency measurement of digital signals. two timer/counters can be cascaded to create a 32-bit timer/counter with optional 32-bit capture. a timer/counter consists of a base counter and a set of compare or capture (cc) channels. the base counter can be used to count clock cycles or events. it has direction control and period setting that can be used for timing. the cc channels can be used together with the base counter to do compare match control, frequency generation, and pulse width waveform modulation, as well as various input capture operations. a timer/counter can be configured for either capture or compare functions, but cannot perform both at the same time. a timer/counter can be clocked and timed from the peripheral clock with optional prescaling or from the event system. the event system can also be used for direction cont rol and capture trigger or to synchronize operations. there are two differences between timer/counter type 0 and type 1. timer/counter 0 has four cc channels, and timer/counter 1 has two cc channels. all information related to cc channels 3 and 4 is valid only for timer/counter 0. only timer/counter 0 has the split mode feature that split it into 2 8-bit timer/counters with four compare channels each. some timer/counters have extensions to enable more specialized waveform and frequency generation. the advanced waveform extension (awex) is intended for motor control and other power control applications. it enables low- and high- side output with dead-time insertion, as well as fault protecti on for disabling and shutting down external drivers. it can also generate a synchronized bit pattern across the port pins. the advanced waveform extension can be enabled to provide extra and more advanced features for the timer/counter. this is only available for timer/counter 0. see ?awex - advanced waveform extension? on page 38 for more details.
37 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 the high-resolution (hi-res) extension can be used to increase the waveform output resolution by four or eight times by using an internal clock source running up to four times faster than the peripheral clock. see ?hi-res - high resolution extension? on page 39 for more details. figure 16-1. overview of a timer/coun ter and closely related peripherals portc, portd, porte and portf each has one timer/counter 0 and one timer/counter1. notation of these timer/counters are tcc0 (time/counter c0), tcc1, tc d0, tcd1, tce0, tce1, tcf0, and tcf1, respectively. awex compare/capture channel d compare/capture channel c compare/capture channel b compare/capture channel a waveform generation buffer comparator hi-res fault protection capture control base counter counter control logic timer period prescaler dti dead-time insertion pattern generation clk per4 port event system clk per timer/counter
38 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 17. awex - advanced waveform extension 17.1 features ? output with complementary output from each capture channel ? four dead time insertion (dti) units, one for each capture channel ? 8-bit dti resolution ? separate high and low side dead-time setting ? double buffered dead-time ? event controlled fault protection ? single channel multiple output operation (for bldc motor control) ? double buffered pattern generation 17.2 overview the advanced waveform extension (awex) provides extra func tions to the timer/counter in waveform generation (wg) modes. it is primarily intended for use with different types of motor control and other power control applications. it enables low- and high side output with dead-time insertion and fault protection for disabling and shutting down external drivers. it can also generate a synchronized bit pattern across the port pins. each of the waveform generator outputs from the timer/count er 0 are split into a complimentary pair of outputs when any awex features are enabled. these output pairs go thr ough a dead-time insertion (dti) unit that generates the non- inverted low side (ls) and inverted high side (hs) of the wg output with dead-time insertion between ls and hs switching. the dti output will override the normal port value according to the port override setting. the pattern generation unit can be used to generate a synchroniz ed bit pattern on the port it is connected to. in addition, the wg output from compare channel a can be distributed to and override all the port pins. when the pattern generator unit is enabled, the dti unit is bypassed. the fault protection unit is connected to the event system, enabling any event to trigger a fault condition that will disable the awex output. the event system ensures predictable and in stant fault reaction, and gives great flexibility in the selection of fault triggers. the awex is available for tcc0 and tce0. the notation of these are awexc and awexe.
39 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 18. hi-res - high r esolution extension 18.1 features ? increases waveform generator resolution by 2-bits (4x) ? supports frequency, single- and dual-slope pwm operation ? supports the awex when this is enabled and used for the same timer/counter 18.2 overview tthe high-resolution (hi-res) extension can be used to increas e the resolution of the waveform generation output from a timer/counter by four or eight. it can be used for a time r/counter doing frequency, single-slope pwm, or dual-slope pwm generation. it can also be used with the awex if this is used for the same timer/counter. the hi-res extension uses the peripheral 4x clock (clkper4). the system clock prescalers must be configured so the peripheral 4x clock frequency is four times higher than t he peripheral and cpu clock frequency when the hi-res extension is enabled. there are four hi-res extensions that each can be enabled for each timer/counters pair on portc, portd, porte and portf. the notation of these peripherals are hi resc, hiresd, hirese and hiresf, respectively.
40 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 19. rtc - 16-bit real-time counter 19.1 features ? 16-bit resolution ? selectable clock source ? 32.768khz external crystal ? external clock ? 32.768khz internal oscillator ? 32khz internal ulp oscillator ? programmable 10-bit clock prescaling ? one compare register ? one period register ? clear counter on period overflow ? optional interrupt/event on overflow and compare match 19.2 overview the 16-bit real-time counter (rtc) is a counter that typica lly runs continuously, including in low-power sleep modes, to keep track of time. it can wake up the device from sleep modes and/or interrupt the device at regular intervals. the reference clock is typically the 1.024khz output from a high-accuracy crystal of 32.768khz, and this is the configuration most optimized for low power consumption. the faster 32.768khz output can be selected if the rtc needs a resolution higher than 1ms. the rtc can also be clock ed from an external clock signal, the 32.768khz internal oscillator or the 32khz internal ulp oscillator. the rtc includes a 10-bit programmable prescaler that c an scale down the reference clock before it reaches the counter. a wide range of resolutions and time-out periods can be configured. with a 32.768khz clock source, the maximum resolution is 30.5s, and time-out periods can range up to 2000 seconds. with a resolution of 1s, the maximum timeout period is more than18 hours (65536 seconds). the rtc can give a compare interrupt and/or event when the counter equals the compare register value, and an overflow interrupt and/or event when it equals the period register value. figure 19-1. real time counter overview 32.768khz crystal osc 32.768khz int. osc tosc1 tosc2 external clock div32 div32 32khz int ulp (div32) rtcsrc 10-bit prescaler clk rtc cnt per comp = = ?match?/ compare top/ overflow
41 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 20. twi - two-wire interface 20.1 features ? four identical two-wire interface peripherals ? bidirectional two-wire communication interface ? phillips i2c compatible ? system management bus (smbus) compatible ? bus master and slave operation supported ? slave operation ? single bus master operation ? bus master in multi-master bus environment ? multi-master arbitration ? flexible slave address match functions ? 7-bit and general call address recognition in hardware ? 10-bit addressing supported ? address mask register for dual address match or address range masking ? optional software address recognition for unlimited number of addresses ? slave can operate in all sleep modes, including power-down ? slave address match can wake device from all sleep modes, including power-down ? 100khz and 400khz bus frequency support ? slew-rate limited output drivers ? input filter for bus noise and spike suppression ? support arbitration between start repeated start and data bit (smbus) ? slave arbitration allows support for addr ess resolve protocol (arp) (smbus) 20.2 overview the two-wire interface (twi) is a bidirectional, two-wire co mmunication interface. it is i2c and system management bus (smbus) compatible. the only external hardware needed to im plement the bus is one pull-up resistor on each bus line. a device connected to the bus must act as a master or a slave. the master initiates a data transaction by addressing a slave on the bus and telling whether it wants to transmit or receive data. one bus can have many slaves and one or several masters that can take control of the bus. an arbitration process handles priority if more than one master tries to transmit data at the same time. mechanisms for resolving bus contention are inherent in the protocol. the twi module supports master and slave functionality. t he master and slave functionality are separated from each other, and can be enabled and configured separately. the ma ster module supports multi-master bus operation and arbitration. it contains the baud rate generator. both 100khz and 400khz bus frequency is supported. quick command and smart mode can be enabled to auto-trigger operations and reduce software complexity. the slave module implements 7-bit address match and general address call recognition in hardware. 10-bit addressing is also supported. a dedicated address mask register can act as a second address match register or as a register for address range masking. the slave continues to operate in all sleep modes, including power-down mode. this enables the slave to wake up the device from all sleep modes on twi address match. it is possible to disable the address matching to let this be handled in software instead. the twi module will detect start and stop conditions, bus collisions, and bus errors. arbitration lost, errors, collision, and clock hold on the bus are also detected and indicated in separate status flags available in both master and slave modes.
42 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 it is possible to disable the twi drivers in the device, and enable a four-wire digital interface for connecting to an external twi bus driver. this can be used for applications where the device operates from a different vcc voltage than used by the twi bus. portc, portd, porte, and portf each has one twi. no tation of these peripherals are twic, twid, twie, and twif.
43 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 21. spi - serial pe ripheral interface 21.1 features ? four identical spi peripherals ? full-duplex, three-wire synchronous data transfer ? master or slave operation ? lsb first or msb first data transfer ? eight programmable bit rates ? interrupt flag at the end of transmission ? write collision flag to indicate data collision ? wake up from idle sleep mode ? double speed master mode 21.2 overview the serial peripheral interface (spi) is a high-speed synchr onous data transfer interface using three or four pins. it allows fast communication between an atmel avr xmega device and peripheral devices or between several microcontrollers. the spi supports full-duplex communication. a device connected to the bus must act as a master or slave. the master initiates and controls all data transactions. portc, portd, porte, and portf each has one spi. no tation of these peripherals are spic, spid, spie, and spif.
44 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 22. usart 22.1 features ? eight identical usart peripherals ? full-duplex operation ? asynchronous or synchronous operation ? synchronous clock rates up to 1/2 of the device clock frequency ? asynchronous clock rates up to 1/8 of the device clock frequency ? supports serial frames with 5, 6, 7, 8, or 9 data bits and 1 or 2 stop bits ? fractional baud rate generator ? can generate desired baud rate from any system clock frequency ? no need for external oscillator with certain frequencies ? built-in error detection and correction schemes ? odd or even parity generation and parity check ? data overrun and framing error detection ? noise filtering includes false start bit detection and digital low-pass filter ? separate interrupts for ? transmit complete ? transmit data register empty ? receive complete ? multiprocessor communication mode ? addressing scheme to address a specif ic devices on a multidevice bus ? enable unaddressed devices to automatically ignore all frames ? master spi mode ? double buffered operation ? operation up to 1/2 of the peripheral clock frequency ? ircom module for irda compliant pulse modulation/demodulation 22.2 overview the universal synchronous and asynchronous serial receiver and transmitter (usart) is a fast and flexible serial communication module. the usart supports full-duplex communication and asynchronous and synchronous operation. the usart can be configured to operate in spi master mode and used for spi communication. communication is frame based, and the frame format c an be customized to support a wide range of standards. the usart is buffered in both directions, enabling continued dat a transmission without any delay between frames. separate interrupts for receive and transmit complete enable fully interrupt driven communication. frame error and buffer overflow are detected in hardware and indicated with separate st atus flags. even or odd parity generation and parity check can also be enabled. the clock generator includes a fractional baud rate generator that is able to generate a wide range of usart baud rates from any system clock frequencies. this removes the need to use an external crystal oscillator with a specific frequency to achieve a required baud rate. it also supports ex ternal clock input in synchronous slave operation. when the usart is set in master spi mode, all usart-spec ific logic is disabled, leaving the transmit and receive buffers, shift registers, and baud rate generator enabled. pin control and interrupt generation are identical in both modes. the registers are used in both modes, but their functionality differs for some control settings. an ircom module can be enabled for one usart to suppor t irda 1.4 physical compliant pulse modulation and demodulation for baud rates up to 115.2kbps. portc, portd, porte, and portf each has two usarts. notation of these peripherals are usartc0, usartc1, usartd0, usartd1, usarte0, usarte1, usartf0 and usartf1.
45 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 23. ircom - ir communication module 23.1 features ? pulse modulation/demodulation for infrared communication ? irda compatible for baud rates up to 115.2kbps ? selectable pulse modulation scheme ? 3/16 of the baud rate period ? fixed pulse period, 8-bit programmable ? pulse modulation disabled ? built-in filtering ? can be connected to and used by any usart 23.2 overview atmel avr xmega devices contain an infrared communication mo dule (ircom) that is irda compatible for baud rates up to 115.2kbps. it can be connected to any usart to enable infrared pulse encoding/decoding for that usart.
46 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 24. aes and des crypto engine 24.1 features ? data encryption standard (des) cpu instruction ? advanced encryption standard (aes) crypto module ? des instruction ? encryption and decryption ? des supported ? encryption/decryption in 16 cpu clock cycles per 8-byte block ? aes crypto module ? encryption and decryption ? supports 128-bit keys ? supports xor data load mode to the state memory ? encryption/decrypti on in 375 clock cycles per 16-byte block 24.2 overview the advanced encryption standard (aes) and data encryp tion standard (des) are two commonly used standards for cryptography. these are supported th rough an aes peripheral module and a des cpu instruction, and the communication interfaces and the cpu can use these for fast, encrypted communication and secure data storage. des is supported by an instruction in the avr cpu. the 8-byte key and 8-byte data blocks must be loaded into the register file, and then the des instruction must be executed 16 times to encrypt/decrypt the data block. the aes crypto module encrypts and decrypts 128-bit data blo cks with the use of a 128-bit key. the key and data must be loaded into the key and state memory in the module before encryption/decryption is started. it takes 375 peripheral clock cycles before the encryption/decryption is done. the encrypted/encrypted data can then be read out, and an optional interrupt can be generated. the aes crypto m odule also has dma support with transfer triggers when encryption/decryption is done and optional auto-start of encryption/decryption when the state memory is fully loaded.
47 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 25. ebi ? external bus interface 25.1 features ? supports sram up to: ? 512kb using 3-port ebi configuration ? 16mb using 3-port ebi configuration ? supports sdram up to: ? 128mb using 3-port ebi configuration ? four software configurable chip selects ? software configurable wait state insertion ? can run from the 2x peripheral clock frequency for fast access 25.2 overview the external bus interface (ebi) is used to connect external peripherals and memory for access through the data memory space. when the ebi is enabled, data address spac e outside the internal sram becomes available using dedicated ebi pins. the ebi can interface external sram, sdram, and peri pherals, such as lcd displays and other memory mapped devices. the address space for the external memory is selectable from 256 bytes (8-bit) up to 16mb (24-bit). various multiplexing modes for address and data lines can be selected for optimal use of pins when more or fewer pins are available for the ebi. the complete memory will be mapped into one linear data address space continuing from the end of the internal sram. the ebi has four chip selects, each with separate configuration. each can be configured for sram, sram low pin count (lpc), or sdram. the ebi is clocked from the fast, 2x peripheral cl ock, running up to two times faster than the cpu. four-bit and eight-bit sdram are supported, and sdram conf igurations, such as cas latency and refresh rate, are configurable in software.
48 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 26. adc - 12-bit analog to digital converter 26.1 features ? two adcs with 12-bit resolution ? 2msps sample rate for each adc ? signed and unsigned conversions ? 4 result registers with individual input channel control for each adc ? 8 single ended inputs for each adc ? 8x4 differential inputs for each adc ? 4 internal inputs: ? integrated temperature sensor ? dac output ? vcc voltage divided by 10 ? bandgap voltage ? software selectable gain of 2, 4, 8, 16, 32 or 64 ? software selectable resolution of 8- or 12-bit. ? internal or external reference selection ? event triggered conversion for accurate timing ? dma transfer of conversion results ? interrupt/event on compare result 26.2 overview xmega a1 devices have two analog to digital converters (adc), see figure 26-1 on page 49 . the two adc modules can be operated simultaneously, individually or synchronized. the adc converts analog voltages to digital values. the adc has 12-bit resolution and is capable of converting up to 2 million samples per second. the input selection is flex ible, and both single-ended and differential measurements can be done. for differential measurements an optional gain stage is available to increase the dynamic range. in addition several internal signal inputs are available. the adc can provide both signed and unsigned results. this is a pipeline adc. a pipeline adc consists of several consecutive stages, where each stage convert one part of the result. the pipeline design enables high sample rate at low clock speeds, and remove limitations on samples speed versus propagation delay. this also means that a new analog voltage can be sampled and a new adc measurement started while other adc measurements are ongoing. adc measurements can either be started by application soft ware or an incoming event from another peripheral in the device. four different result registers with individual input se lection (mux selection) are provided to make it easier for the application to keep track of the data. each result register and mux selection pair is referred to as an adc channel. it is possible to use dma to move adc results directly to memory or peripherals when conversions are done. both internal and external analog reference voltages can be us ed. an accurate internal 1.0v reference is available. an integrated temperature sensor is available and the output from this can be measured with the adc. the output from the dac, vcc/10 and the bandgap voltage can also be measured by the adc.
49 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 26-1. adc overview each adc has four mux selection registers with a correspon ding result register. this means that four channels can be sampled within 1.5 s without any intervention by the applic ation other than starting the conversion. the results will be available in the result registers. the adc may be configured for 8- or 12-bit result, reducing the minimum conversion time (propagation delay) from 3.5 s for 12-bit to 2.5 s for 8-bit result. adc conversion results are provided left- or right adjusted with optional ?1? or ?0? padding. this eases calculation when the result is represented as a signed integer (signed 16-bit number). porta and portb each has one adc. notation of thes e peripherals are adca and adcb, respectively. ch1 result ch0 result ch2 result compare < > threshold (int req) internal 1.00v internal vcc/1.6v arefa arefb v inp v inn internal signals internal signals ch3 result adc0 adc7 adc4 adc7 adc0 adc3 ? ? ? int. signals int. signals reference voltage 1x - 64x ? ? ? ? ? ? adc0 adc7 ? ? ?
50 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 27. dac - 12-bit digital to analog converter 27.1 features ? 12-bit resolution ? two independent, continuous-drive output channels ? up to one million samples per second conversion rate ? built-in calibration that removes: ? offset error ? gain error ? multiple conversion trigger sources ? on new available data ? events from the event system ? high drive capabilities and support for ? resistive loads ? capacitive loads ? combined resistive and capacitive loads ? internal and external reference options ? dac output available as input to analog comparator and adc ? low-power mode, with reduced drive strength ? optional dma transfer of data 27.2 overview the xmega a1 devices features two 12-bit, 1 msps dacs with built-in offset and gain calibration, see figure 27-1 on page 50 . a dac converts a digital value into an analog signal. the da c may use an internal 1.0 voltage as the upper limit for conversion, but it is also possible to use the supply volt age or any applied voltage in-between. the external reference input is shared with the adc reference input. figure 27-1. dac overview ch1data ch0data trigger internal 1.00v arefa arefb avcc d a t a dac ctrl dac ch0 refsel enable 12 12 adc dac dac ch1 output control and driver
51 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 each dac has one continuous output with high drive capabilities for both resistive and capacitive loads. it is also possible to split the continuous time channel into two sample and hold (s/h) channels, each with separate data conversion registers. a dac conversion may be started from the application software by writing the data conversion registers. the dac can also be configured to do conversions triggered by the event system to have regular timing, independent of the application software. dma may be used for transferring data from memory locations to dac data registers. the dac has a built-in calibration system to reduce offset and gain error when loading with a calibration value from software. porta and portb each has one dac. notation of thes e peripherals are daca and dacb. respectively.
52 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 28. ac - analog comparator 28.1 features ? four analog comparators ? selectable propagation delay versus current consumption ? selectable hysteresis ? no ? small ? large ? analog comparator output available on pin ? flexible input selection ? all pins on the port ? output from the dac ? bandgap reference voltage ? a 64-level programmable voltage scaler of the internal vcc voltage ? interrupt and event generation on: ? rising edge ? falling edge ? toggle ? window function interrupt and event generation on: ? signal above window ? signal inside window ? signal below window ? constant current source with configurable output pin selection 28.2 overview the analog comparator (ac) compares the voltage levels on two inputs and gives a digital output based on this comparison. the analog comparator may be configured to generate interrupt requests and/or events upon several different combinations of input change. two important properties of the analog comparator?s dynamic behavior are: hysteresis and propagation delay. both of these parameters may be adjusted in order to achieve the optimal operation for each application. the input selection includes analog port pins, several inter nal signals, and a 64-level programmable voltage scaler. the analog comparator output state can also be output on a pin for use by external devices. a constant current source can be enabled and output on a selectable pin. this can be used to replace, for example, external resistors used to charge capacitors in capacitive touch sensing applications. the analog comparators are always grouped in pairs on eac h port. these are called analog comparator 0 (ac0) and analog comparator 1 (ac1). they have identical behavior, but separate control registers. used as pair, they can be set in window mode to compare a signal to a voltage range instead of a voltage level. porta and portb each has one ac pair. notations are aca and acb, respectively.
53 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 28-1. analog comparator overview the window function is realized by connecting the external i nputs of the two analog comparators in a pair as shown in figure 28-2 . figure 28-2. analog comparator window function acnmuxctrl acnctrl interrupt mode enable enable hysteresis hysteresis ac1out winctrl interrupt sensititivity control & window function events interrupts ac0out pin input pin input pin input pin input voltage scaler dac bandgap + - + - ac0 + - ac1 + - input signal upper limit of window lower limit of window interrupt sensitivity control interrupts events
54 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 29. programming and debugging 29.1 features ? programming ? external programming through pdi or jtag interfaces ? minimal protocol overhead for fast operation ? built-in error detection and handling for reliable operation ? boot loader support for programming through any communication interface ? debugging ? nonintrusive, real-time, on-chip debug system ? no software or hardware resources required from device except pin connection ? program flow control ? go, stop, reset, step into, step over, step out, run-to-cursor ? unlimited number of user program breakpoints ? unlimited number of user data breakpoints, break on: ? data location read, write, or both read and write ? data location content equal or not equal to a value ? data location content is great er or smaller than a value ? data location content is within or outside a range ? no limitation on device clock frequency ? program and debug interface (pdi) ? two-pin interface for external programming and debugging ? uses the reset pin and a dedicated pin ? no i/o pins required during programming or debugging ? jtag interface ? four-pin, ieee std. 1149.1 compliant interface for programming and debugging ? boundary scan capabilities according to ieee std. 1149.1 (jtag) 29.2 overview the program and debug interface (pdi) is an atmel proprie tary interface for external programming and on-chip debugging of a device. the pdi supports fast programming of nonvolatile memory (n vm) spaces; flash, eepom, fuses, lock bits, and the user signature row. debug is supported through an on-chip debug system that offers nonintrusive, real-time debug. it does not require any software or hardware resources except for the device pin connection. using the atmel tool chain, it offers complete program flow control and support for an unlimited number of program and complex data breakpoints. application debug can be done from a c or other high-level language source code level, as well as from an assembler and disassembler level. programming and debugging can be done through two physical interf aces. the primary one is the pdi physical layer, which is available on all devices. this is a two-pin interface that uses the reset pin for the clock input (pdi_clk) and one other dedicated pin for data input and output (pdi_data). a jt ag interface is also available on most devices, and this can be used for programming and debugging through the four-pin jt ag interface. the jtag interface is ieee std. 1149.1 compliant, and supports boundary scan. any external pr ogrammer or on-chip debugger/emulator can be directly connected to either of these interfaces. unless otherwise stated, all references to the pdi assume access through the pdi physical layer.
55 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 30. pinout and pin functions the pinout of xmega a1 is shown in ?pinout/block diagram? on page 3 . in addition to general i/o functionality, each pin may have several functions. this will depend on which peripheral is enabled and connected to the actual pin. only one of the alternate pin functions can be used at time. 30.1 alternate pin f unction description the tables below shows the notation for all pin functions available and describes its function. 30.1.1 operation/power supply 30.1.2 port interrupt functions 30.1.3 analog functions 30.1.4 ebi functions v cc digital supply voltage av cc analog supply voltage gnd ground sync port pin with full synchronous and limi ted asynchronous interrupt function async port pin with full synchronous and full asynchronous interrupt function acn analog comparator input pin n ac0out analog comparator 0 output adcn analog to digital converter input pin n dacn digital to analog converter output pin n aref analog reference input pin an address line n dn data line n csn chip select n alen address latch enable pin n (sram) re read enable (sram) we external data memory write (sram /sdram) ban bank address (sdram) cas column access strobe (sdram) cke sdram clock enable (sdram)
56 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 30.1.5 timer/counter and awex functions 30.1.6 communication functions 30.1.7 oscillators, clock and event clk sdram clock (sdram) dqm data mask signal/output enable (sdram) ras row access strobe (sdram) 2p 2 port interface 3p 3 port interface ocnx output compare channel x for timer/counter n o cnx inverted output compare channel x for timer/counter n ocnxls output compare channel x low side for timer/counter n ocnxhs output compare channel x high side for timer/counter n scl serial clock for twi sda serial data for twi sclin serial clock in for twi when external driver interface is enabled sclout serial clock out for twi when external driver interface is enabled sdain serial data in for twi when external driver interface is enabled sdaout serial data out for twi when external driver interface is enabled xckn transfer clock for usart n rxdn receiver data for usart n txdn transmitter data for usart n s s slave select for spi mosi master out slave in for spi miso master in slave out for spi sck serial clock for spi n timer oscillator pin n xtaln input/output for inverting oscillator pin n clkout peripheral clock output evout event channel 0 output
57 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 30.1.8 debug/system functions reset reset pin pdi_clk program and debug interface clock pin pdi_data program and debug interface data pin tck jtag test clock tdi jtag test data in tdo jtag test data out tms jtag test mode select
58 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 30.2 alternate pin functions the tables below show the primary/default function for each pin on a port in the first column, the pin number in the second column, and then all alternate pin functions in the remaining columns. the head row shows what peripheral that enable and use the alternate pin functions. table 30-1. port a - alternate functions. table 30-2. port b - alternate functions. table 30-3. port c - alternate functions. port a pin # interrupt adca pos adca neg adca gainpos adca gainneg aca pos aca neg aca out daca refa gnd 93 avcc 94 pa0 95 sync adc0 adc0 adc0 ac0 ac0 aref pa1 96 sync adc1 adc1 adc1 ac1 ac1 pa2 97 sync/async adc2 adc2 adc2 ac2 dac0 pa3 98 sync adc3 adc3 adc3 ac3 ac3 dac1 pa4 99 sync adc4 adc4 adc4 ac4 pa5 100 sync adc5 adc5 adc5 ac5 ac5 pa6 1 sync adc6 adc6 adc6 ac6 pa7 2 sync adc7 adc7 adc7 ac7 ac0out port b pin # interrupt adcb pos adcb neg adcb gainpos adcb gainneg acb pos acb neg acb out dacb refb jtag gnd 3 avcc 4 pb0 5 sync adc0 adc0 adc0 ac0 ac0 aref pb1 6 sync adc1 adc1 adc1 ac1 ac1 pb2 7 sync/async adc2 adc2 adc2 ac2 dac0 pb3 8 sync adc3 adc3 adc3 ac3 ac3 dac1 pb4 9 sync adc4 adc4 adc4 ac4 tms pb5 10 sync adc5 adc5 adc5 ac5 ac5 tdi pb6 11 sync adc6 adc6 adc6 ac6 tck pb7 12 sync adc7 adc7 adc7 ac7 ac0out tdo port c pin # interrupt tcc0 awexc tcc1 usartc0 usartc1 spic twic clockout eventout gnd 13 vcc 14 pc0 15 sync oc0a oc0als sda pc1 16 sync oc0b oc0ahs xck0 scl pc2 17 sync/async oc0c oc0bls rxd0
59 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 table 30-4. port d - alternate functions. table 30-5. port e - alternate functions. table 30-6. port f - alternate functions. pc3 18 sync oc0d oc0bhs txd0 pc4 19 sync oc0cls oc1a ss pc5 20 sync oc0chs oc1b xck1 mosi pc6 21 sync oc0dls rxd1 miso pc7 22 sync oc0dhs txd1 sck clkout evout port d pin # interrupt tcd0 tcd1 usartd0 usartd1 spid twid clockout eventout gnd 23 vcc 24 pd0 25 sync oc0a sda pd1 26 sync oc0b xck0 scl pd2 27 sync/async oc0c rxd0 pd3 28 sync oc0d txd0 pd4 29 sync oc1a ss pd5 30 sync oc1b xck1 mosi pd6 31 sync rxd1 miso pd7 32 sync txd1 sck clkout evout port e pin # interrupt tce0 awexe tce1 usarte0 usarte1 spie twie clockout eventout gnd 33 vcc 34 pe0 35 sync oc0a oc0als sda pe1 36 sync oc0b oc0ahs xck0 scl pe2 37 sync/async oc0c oc0bls rxd0 pe3 38 sync oc0d oc0bhs txd0 pe4 39 sync oc0cls oc1a ss pe5 40 sync oc0chs oc1b xck1 mosi pe6 41 sync oc0dls rxd1 miso pe7 42 sync oc0dhs txd1 sck clkout evout port f pin # interrupt tcf0 tcf1 usartf0 usartf1 spif twif gnd 43 vcc 44 pf0 45 sync oc0a sda port c pin # interrupt tcc0 awexc tcc1 usartc0 usartc1 spic twic clockout eventout
60 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 table 30-7. port h - alternate functions. table 30-8. port j - alternate functions. pf1 46 sync oc0b xck0 scl pf2 47 sync/async oc0c rxd0 pf3 48 sync oc0d txd0 pf4 49 sync oc1a ss pf5 50 sync oc1b xck1 mosi pf6 51 sync rxd1 miso pf7 52 sync txd1 sck port h pin # interrupt sdram 3p sram ale1 3p sram ale12 3p lpc ale1 3p lpc ale1 2p lpc ale12 2p gnd 53 vcc 54 ph0 55 sync we we we we we we ph1 56 sync cas re re re re re ph2 57 sync/async ras ale1 ale1 ale1 ale1 ale1 ph3 58 sync dqm ale2 ale2 ph4 59 sync ba0 cs0 /a16 cs0 cs0 /a16 cs0 cs0 /a16 ph5 60 sync ba1 cs1 /a17 cs1 cs1 /a17 cs1 cs1 /a17 ph6 61 sync cke cs2 /a18 cs2 cs2 /a18 cs2 cs2 /a18 ph7 62 sync clk cs3 /a19 cs3 cs3 /a19 cs3 cs3 /a19 port j pin # interrupt sdram 3p sram ale1 3p sram ale12 3p lpc ale1 3p lpc ale1 2p lpc ale12 2p gnd 63 vcc 64 pj0 65 sync d0 d0 d0 d0/a0 d0/a0 d0/a0/a8 pj1 66 sync d1 d1 d1 d1/a1 d1/a1 d1/a1/a9 pj2 67 sync/async d2 d2 d2 d2/a2 d2/a2 d2/a2/a10 pj3 68 sync d3 d3 d3 d3/a3 d3/a3 d3/a3/a11 pj4 69 sync a8 d4 d4 d4/a4 d4/a4 d4/a4/a12 pj5 70 sync a9 d5 d5 d5/a5 d5/a5 d5/a5/a13 pj6 71 sync a10 d6 d6 d6/a6 d6/a6 d6/a6/a14 pj7 72 sync a11 d7 d7 d7/a7 d7/a7 d7/a7/a15 port f pin # interrupt tcf0 tcf1 usartf0 usartf1 spif twif
61 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 table 30-9. port k - alternate functions. table 30-10. port q - alternate functions. table 30-11. port r - alternate functions. port k pin # interrupt sdram 3p sram ale1 3p sram ale12 3p lpc ale1 3p lpc ale1 2p lpc ale12 2p gnd 73 vcc 74 pk0 75 sync a0 a0/a8 a0/a8/a16 a8 pk1 76 sync a1 a1/a9 a1/a9/a17 a9 pk2 77 sync/async a2 a2/a10 a2/a10/a18 a10 pk3 78 sync a3 a3/a11 a3/a11/a19 a11 pk4 79 sync a4 a4/a12 a4/a12/a20 a12 pk5 80 sync a5 a5/a13 a5/a13/a21 a13 pk6 81 sync a6 a6/a14 a6/a14/a22 a14 pk7 82 sync a7 a7/a15 a7/a15/a23 a15 port q pin # interrupt vcc 83 gnd 84 pq0 85 sync tosc1 (input) pq1 86 sync tosc2 (output) pq2 87 sync/async pq3 88 sync port r pin # interrupt pdi xtal pdi 89 pdi_data reset 90 pdi_clock pro 91 sync xtal2 pr1 92 sync xtal1
62 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 31. peripheral modu le address map the address maps show the base address for each peripher al and module in xmega a1. for complete register description and summary for each peripheral module, refer to the xmega a manual. table 31-1. peripheral module address map base address name description 0x0000 gpio general purpose io registers 0x0010 vport0 virtual port 0 0x0014 vport1 virtual port 1 0x0018 vport2 virtual port 2 0x001c vport3 virtual port 3 0x0030 cpu cpu 0x0040 clk clock control 0x0048 sleep sleep controller 0x0050 osc oscillator control 0x0060 dfllrc32m dfll for the 32 mhz internal rc oscillator 0x0068 dfllrc2m dfll for the 2 mhz rc oscillator 0x0070 pr power reduction 0x0078 rst reset controller 0x0080 wdt watch-dog timer 0x0090 mcu mcu control 0x00a0 pmic programmable multilevel interrupt controller 0x00b0 portcfg port configuration 0x00c0 aes aes module 0x0100 dma dma controller 0x0180 evsys event system 0x01c0 nvm non volatile memory (nvm) controller 0x0200 adca analog to digital converter on port a 0x0240 adcb analog to digital converter on port b 0x0300 daca digital to analog converter on port a 0x0320 dacb digital to analog converter on port b 0x0380 aca analog comparator pair on port a 0x0390 acb analog comparator pair on port b 0x0400 rtc real time counter 0x0440 ebi external bus interface 0x0480 twic two wire interface on port c 0x0490 twid two wire interface on port d
63 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 0x04a0 twie two wire interface on port e 0x04b0 twif two wire interface on port f 0x0600 porta port a 0x0620 portb port b 0x0640 portc port c 0x0660 portd port d 0x0680 porte port e 0x06a0 portf port f 0x06e0 porth port h 0x0700 portj port j 0x0720 portk port k 0x07c0 portq port q 0x07e0 portr port r 0x0800 tcc0 timer/counter 0 on port c 0x0840 tcc1 timer/counter 1 on port c 0x0880 awexc advanced waveform extension on port c 0x0890 hiresc high resolution extension on port c 0x08a0 usartc0 usart 0 on port c 0x08b0 usartc1 usart 1 on port c 0x08c0 spic serial peripheral interface on port c 0x08f8 ircom infrared communication module 0x0900 tcd0 timer/counter 0 on port d 0x0940 tcd1 timer/counter 1 on port d 0x0990 hiresd high resolution extension on port d 0x09a0 usartd0 usart 0 on port d 0x09b0 usartd1 usart 1 on port d 0x09c0 spid serial peripheral interface on port d 0x0a00 tce0 timer/counter 0 on port e 0x0a40 tce1 timer/counter 1 on port e 0x0a80 awexe advanced waveform extension on port e 0x0a90 hirese high resolution extension on port e 0x0aa0 usarte0 usart 0 on port e 0x0ab0 usarte1 usart 1 on port e 0x0ac0 spie serial peripheral interface on port e 0x0b00 tcf0 timer/counter 0 on port f base address name description
64 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 0x0b40 tcf1 timer/counter 1 on port f 0x0b90 hiresf high resolution extension on port f 0x0ba0 usartf0 usart 0 on port f 0x0bb0 usartf1 usart 1 on port f 0x0bc0 spif serial peripheral interface on port f base address name description
65 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 32. instruction set summary mnemonics operands description operation flags #clocks arithmetic and logic instructions add rd, rr add without carry rd ? rd + rr z,c,n,v,s,h 1 adc rd, rr add with carry rd ? rd + rr + c z,c,n,v,s,h 1 adiw rd, k add immediate to word rd ? rd + 1:rd + k z,c,n,v,s 2 sub rd, rr subtract without carry rd ? rd - rr z,c,n,v,s,h 1 subi rd, k subtract immediate rd ? rd - k z,c,n,v,s,h 1 sbc rd, rr subtract with carry rd ? rd - rr - c z,c,n,v,s,h 1 sbci rd, k subtract immediate with carry rd ? rd - k - c z,c,n,v,s,h 1 sbiw rd, k subtract immediate from word rd + 1:rd ? rd + 1:rd - k z,c,n,v,s 2 and rd, rr logical and rd ? rd ? rr z,n,v,s 1 andi rd, k logical and with immediate rd ? rd ? k z,n,v,s 1 or rd, rr logical or rd ? rd v rr z,n,v,s 1 ori rd, k logical or with immediate rd ? rd v k z,n,v,s 1 eor rd, rr exclusive or rd ? rd ? rr z,n,v,s 1 com rd one?s complement rd ? $ff - rd z,c,n,v,s 1 neg rd two?s complement rd ? $00 - rd z,c,n,v,s,h 1 sbr rd,k set bit(s) in register rd ? rd v k z,n,v,s 1 cbr rd,k clear bit(s) in register rd ? rd ? ($ffh - k) z,n,v,s 1 inc rd increment rd ? rd + 1 z,n,v,s 1 dec rd decrement rd ? rd - 1 z,n,v,s 1 tst rd test for zero or minus rd ? rd ? rd z,n,v,s 1 clr rd clear register rd ? rd ? rd z,n,v,s 1 ser rd set register rd ? $ff none 1 mul rd,rr multiply unsigned r1:r0 ? rd x rr (uu) z,c 2 muls rd,rr multiply signed r1:r0 ? rd x rr (ss) z,c 2 mulsu rd,rr multiply signed with unsigned r1:r0 ? rd x rr (su) z,c 2 fmul rd,rr fractional multiply unsigned r1:r0 ? rd x rr<<1 (uu) z,c 2 fmuls rd,rr fractional multiply signed r1:r0 ? rd x rr<<1 (ss) z,c 2 fmulsu rd,rr fractional multiply signed with unsigned r1:r0 ? rd x rr<<1 (su) z,c 2 des k data encryption if (h = 0) then r15:r0 else if (h = 1) then r15:r0 ? ? encrypt(r15:r0, k) decrypt(r15:r0, k) 1/2 branch instructions rjmp k relative jump pc ? pc + k + 1 none 2 ijmp indirect jump to (z) pc(15:0) pc(21:16) ? ? z, 0 none 2 eijmp extended indirect jump to (z) pc(15:0) pc(21:16) ? ? z, eind none 2 jmp k jump pc ? k none 3
66 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 rcall k relative call subroutine pc ? pc + k + 1 none 2 / 3 (1) icall indirect call to (z) pc(15:0) pc(21:16) ? ? z, 0 none 2 / 3 (1) eicall extended indirect call to (z) pc(15:0) pc(21:16) ? ? z, eind none 3 (1) call k call subroutine pc ? k none 3 / 4 (1) ret subroutine return pc ? stack none 4 / 5 (1) reti interrupt return pc ? stack i 4 / 5 (1) cpse rd,rr compare, skip if equal if (rd = rr) pc ? pc + 2 or 3 none 1 / 2 / 3 cp rd,rr compare rd - rr z,c,n,v,s,h 1 cpc rd,rr compare with carry rd - rr - c z,c,n,v,s,h 1 cpi rd,k compare with immediate rd - k z,c,n,v,s,h 1 sbrc rr, b skip if bit in register cleared if (rr(b) = 0) pc ? pc + 2 or 3 none 1 / 2 / 3 sbrs rr, b skip if bit in register set if (rr(b) = 1) pc ? pc + 2 or 3 none 1 / 2 / 3 sbic a, b skip if bit in i/o register cleared if (i/o(a,b) = 0) pc ? pc + 2 or 3 none 2 / 3 / 4 sbis a, b skip if bit in i/o register set if (i/o(a,b) =1) pc ? pc + 2 or 3 none 2 / 3 / 4 brbs s, k branch if status flag set if (sreg(s) = 1) then pc ? pc + k + 1 none 1 / 2 brbc s, k branch if status flag cleared if (sreg(s) = 0) then pc ? pc + k + 1 none 1 / 2 breq k branch if equal if (z = 1) then pc ? pc + k + 1 none 1 / 2 brne k branch if not equal if (z = 0) then pc ? pc + k + 1 none 1 / 2 brcs k branch if carry set if (c = 1) then pc ? pc + k + 1 none 1 / 2 brcc k branch if carry cleared if (c = 0) then pc ? pc + k + 1 none 1 / 2 brsh k branch if same or higher if (c = 0) then pc ? pc + k + 1 none 1 / 2 brlo k branch if lower if (c = 1) then pc ? pc + k + 1 none 1 / 2 brmi k branch if minus if (n = 1) then pc ? pc + k + 1 none 1 / 2 brpl k branch if plus if (n = 0) then pc ? pc + k + 1 none 1 / 2 brge k branch if greater or equal, signed if (n ? v= 0) then pc ? pc + k + 1 none 1 / 2 brlt k branch if less than, signed if (n ? v= 1) then pc ? pc + k + 1 none 1 / 2 brhs k branch if half carry flag set if (h = 1) then pc ? pc + k + 1 none 1 / 2 brhc k branch if half carry flag cleared if (h = 0) then pc ? pc + k + 1 none 1 / 2 brts k branch if t flag set if (t = 1) then pc ? pc + k + 1 none 1 / 2 brtc k branch if t flag cleared if (t = 0) then pc ? pc + k + 1 none 1 / 2 brvs k branch if overflow flag is set if (v = 1) then pc ? pc + k + 1 none 1 / 2 brvc k branch if overflow flag is cleared if (v = 0) then pc ? pc + k + 1 none 1 / 2 brie k branch if interrupt enabled if (i = 1) then pc ? pc + k + 1 none 1 / 2 brid k branch if interrupt disabled if (i = 0) then pc ? pc + k + 1 none 1 / 2 data transfer instructions mov rd, rr copy register rd ? rr none 1 movw rd, rr copy register pair rd+1:rd ? rr+1:rr none 1 mnemonics operands description operation flags #clocks
67 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 ldi rd, k load immediate rd ? k none 1 lds rd, k load direct from data space rd ? (k) none 2 (1)(2) ld rd, x load indirect rd ? (x) none 1 (1)(2) ld rd, x+ load indirect and post-increment rd x ? ? (x) x + 1 none 1 (1)(2) ld rd, -x load indirect and pre-decrement x ? x - 1, rd ? (x) ? ? x - 1 (x) none 2 (1)(2) ld rd, y load indirect rd ? (y) ? (y) none 1 (1)(2) ld rd, y+ load indirect and post-increment rd y ? ? (y) y + 1 none 1 (1)(2) ld rd, -y load indirect and pre-decrement y rd ? ? y - 1 (y) none 2 (1)(2) ldd rd, y+q load indirect with displacement rd ? (y + q) none 2 (1)(2) ld rd, z load indirect rd ? (z) none 1 (1)(2) ld rd, z+ load indirect and post-increment rd z ? ? (z), z+1 none 1 (1)(2) ld rd, -z load indirect and pre-decrement z rd ? ? z - 1, (z) none 2 (1)(2) ldd rd, z+q load indirect with displacement rd ? (z + q) none 2 (1)(2) sts k, rr store direct to data space (k) ? rd none 2 (1) st x, rr store indirect (x) ? rr none 1 (1) st x+, rr store indirect and post-increment (x) x ? ? rr, x + 1 none 1 (1) st -x, rr store indirect and pre-decrement x (x) ? ? x - 1, rr none 2 (1) st y, r r store indirect (y) ? rr none 1 (1) st y+, rr store indirect and post-increment (y) y ? ? rr, y + 1 none 1 (1) st -y, rr store indirect and pre-decrement y (y) ? ? y - 1, rr none 2 (1) std y+q, rr store indirect with displacement (y + q) ? rr none 2 (1) st z, rr store indirect (z) ? rr none 1 (1) st z+, rr store indirect and post-increment (z) z ? ? rr z + 1 none 1 (1) st -z, rr store indirect and pre-decrement z ? z - 1 none 2 (1) std z+q,rr store indirect with displacement (z + q) ? rr none 2 (1) lpm load program memory r0 ? (z) none 3 lpm rd, z load program memory rd ? (z) none 3 lpm rd, z+ load program memory and post-increment rd z ? ? (z), z + 1 none 3 elpm extended load program memory r0 ? (rampz:z) none 3 elpm rd, z extended load program memory rd ? (rampz:z) none 3 elpm rd, z+ extended load program memory and post- increment rd z ? ? (rampz:z), z + 1 none 3 spm store program memory (rampz:z) ? r1:r0 none - mnemonics operands description operation flags #clocks
68 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 spm z+ store program memory and post-increment by 2 (rampz:z) z ? ? r1:r0, z + 2 none - in rd, a in from i/o location rd ? i/o(a) none 1 out a, rr out to i/o location i/o(a) ? rr none 1 push rr push register on stack stack ? rr none 1 (1) pop rd pop register from stack rd ? stack none 2 (1) bit and bit-test instructions lsl rd logical shift left rd(n+1) rd(0) c ? ? ? rd(n), 0, rd(7) z,c,n,v,h 1 lsr rd logical shift right rd(n) rd(7) c ? ? ? rd(n+1), 0, rd(0) z,c,n,v 1 rol rd rotate left through carry rd(0) rd(n+1) c ? ? ? c, rd(n), rd(7) z,c,n,v,h 1 ror rd rotate right through carry rd(7) rd(n) c ? ? ? c, rd(n+1), rd(0) z,c,n,v 1 asr rd arithmetic shift right rd(n) ? rd(n+1), n=0..6 z,c,n,v 1 swap rd swap nibbles rd(3..0) ? rd(7..4) none 1 bset s flag set sreg(s) ? 1 sreg(s) 1 bclr s flag clear sreg(s) ? 0 sreg(s) 1 sbi a, b set bit in i/o register i/o(a, b) ? 1 none 1 cbi a, b clear bit in i/o register i/o(a, b) ? 0 none 1 bst rr, b bit store from register to t t ? rr(b) t 1 bld rd, b bit load from t to register rd(b) ? t none 1 sec set carry c ? 1 c 1 clc clear carry c ? 0 c 1 sen set negative flag n ? 1 n 1 cln clear negative flag n ? 0 n 1 sez set zero flag z ? 1 z 1 clz clear zero flag z ? 0 z 1 sei global interrupt enable i ? 1 i 1 cli global interrupt disable i ? 0 i 1 ses set signed test flag s ? 1 s 1 cls clear signed test flag s ? 0 s 1 sev set two?s complement overflow v ? 1 v 1 clv clear two?s complement overflow v ? 0 v 1 set set t in sreg t ? 1 t 1 clt clear t in sreg t ? 0 t 1 seh set half carry flag in sreg h ? 1 h 1 clh clear half carry flag in sreg h ? 0 h 1 mnemonics operands description operation flags #clocks
69 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 notes: 1. cycle times for data memory accesses assume internal memo ry accesses, and are not valid for accesses via the external r am interface. 2. one extra cycle must be added when accessing internal sram. mcu control instructions break break (see specific descr. for break) none 1 nop no operation none 1 sleep sleep (see specific descr. for sleep) none 1 wdr watchdog reset (see specific descr. for wdr) none 1 mnemonics operands description operation flags #clocks
70 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 33. packaging information 33.1 100a 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 100a, 100-lead, 14 x 14 mm body size, 1.0 mm body thickness, 0.5 mm lead pitch, thin profile plastic quad flat package (tqfp) d 100a 2010-10-20 pin 1 identifier 0~7 pin 1 l c a1 a2 a d1 d e e1 e b a ? ? 1.20 a1 0.05 ? 0.15 a2 0.95 1.00 1.05 d 15.75 16.00 16.25 d1 13.90 14.00 14.10 note 2 e 15.75 16.00 16.25 e1 13.90 14.00 14.10 note 2 b 0.17 ? 0.27 c 0.09 ? 0.20 l 0.45 ? 0.75 e 0.50 typ notes: 1. this package conforms to jedec reference ms-026, variation aed. 2. dimensions d1 and e1 do not include mold protrusion. allowable protrusion is 0.25 mm per side. dimensions d1 and e1 are maximum plastic body size dimensions including mold mismatch. 3. lead coplanarity is 0.08 mm maximum. common dimensions (unit of measure = mm) symbol min nom max note
71 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 33.2 100c1 2325 orchard park w ay san jose, ca 95131 title drawing no. r rev. 100c1 , 100- b all, 9 x 9 x 1.2 mm body, ball pitch 0. 8 0 mm chip array bga package (cbga) a 100c1 5/25/06 top view s ide view bottom view common dimen s ion s (unit of meas u re = mm) s ymbol min nom max note a 1.10 ? 1.20 a1 0.30 0.35 0.40 d 8 .90 9.00 9.10 e 8 .90 9.00 9.10 d1 7.10 7.20 7.30 e1 7.10 7.20 7.30 ? b 0.35 0.40 0.45 e 0. 8 0 typ marked a1 identifier 1 2 3 4 5 6 7 8 a b c d e 9 f g h i j 10 0.90 typ 0.90 typ a1 corner 0.12 z e d e e ? b a a1 e1 d1
72 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 33.3 100c2 title drawing no. gpc rev. package drawing contact: packagedrawings@atmel.com 100c2 cif a 100c2, 100-ball (10 x 10 array), 0.65 mm pitch, 7.0 x 7.0 x 1.0 mm, very thin, fine-pitch ball grid array package (vfbga) 12/23/08 common dimensions (unit of measure = mm) symbol min nom max note a ? ? 1.00 a1 0.20 ? ? a2 0.65 ? ? d 6.90 7.00 7.10 d1 5.85 bsc e 6.90 7.00 7.10 e1 5.85 bsc b 0.30 0.35 0.40 e 0.65 bsc top view side view a1 ball id j i h g f e d c b a 12 3 4 5 6 7 8 9 10 a a1 a2 d e 0.10 e1 d1 100 - ? 0.35 0.05 e a1 ball corner bottom view b e
73 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 34. electrical characteristics 34.1 absolute maximum ratings* 34.2 dc characteristics table 34-1. current consumption. operating temperature . . . . . . . . . . . -55 ? c to +125 ? c *notice: stresses beyond those listed under ?absolute maximum ratings? may cause permanent dam- age to the device. this is a stress rating only and functional operation of the device at these or other conditions beyond those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rat- ing conditions for extended periods may affect device reliability. storage temperature . . . . . . . . . . . . . -65 ? c to +150c voltage on any pin with respect to ground-0.5v to v cc +0.5v maximum operating voltage . . . . . . . . . . . . . . . . 3.6v dc current per i/o pin. . . . . . . . . . . . . . . . . . 20.0 ma dc current v cc and gnd pins . . . . . . . . . . 200.0 ma symbol parameter condition min typ max units i cc active mode (1) 1 mhz, ext. clk v cc = 1.8v 365 a v cc = 3.0v 790 2 mhz, ext. clk v cc = 1.8v 690 800 v cc = 3.0v 1400 1600 32 mhz, ext. clk v cc = 3.0v 18.35 20 ma idle mode (1) 1 mhz, ext. clk v cc = 1.8v 135 a v cc = 3.0v 255 2 mhz, ext. clk v cc = 1.8v 270 380 v cc = 3.0v 510 650 32 mhz, ext. clk v cc = 3.0v 8.15 9.2 ma power-down mode all functions disabled v cc = 3.0v 0.1 a all functions disabled, t = 85c v cc = 3.0v 2 5 ulp, wdt, sampled bod v cc = 1.8v 0.5 v cc = 3.0v 0.6 ulp, wdt, sampled bod, t=85c v cc = 3.0v 3 10 power-save mode rtc 1 khz from low power 32 khz v cc = 1.8v 0.52 a v cc = 3.0v 0.55 rtc from low power 32 khz v cc = 3.0v 1.16
74 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 note: 1. all power reduction registers set. typical numbers measured at t = 25c if nothing else is specified. 2. with no prescaling module current consumption (2) i cc rc32m 395 a rc32m w/dfll internal 32.768 khz oscillator as dfll source tbd rc2m 120 rc2m w/dfll internal 32.768 khz oscillator as dfll source 155 rc32k 30 pll multiplication factor = 10x 195 watchdog normal mode tbd bod continuous mode 120 bod sampled mode 1 internal 1.00 v ref 85 temperature reference 80 rtc with int. 32 khz rc as source no prescaling 30 rtc with ulp as source no prescaling 1 adc 250 ks/s - int. 1v ref 3.6 ma dac normal mode 1000 ks/s, single channel, int. 1v ref 1.8 dac low-power mode 1000 ks/s, single channel, int. 1v ref 1 ac high-speed 220 a ac low-power 110 usart rx and tx enabled, 9600 baud 7.5 dma 180 timer/counter prescaler div1 18 aes 195 flash/eeprom programming vcc = 2v 20 ma vcc = 3v 30 symbol parameter condition min typ max units
75 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 34.3 speed table 34-2. operating voltage and frequency. the maximum cpu clock frequency of the xmega a1 devices is depending on v cc . as shown in figure 34-1 on page 75 the frequency vs. v cc curve is linear between 1.8v < v cc <2.7v. figure 34-1. maximum frequency vs. vcc symbol parameter condition min typ max units clk cpu cpu clock frequency v cc = 1.6v 0 12 mhz v cc = 1.8v 0 12 v cc = 2.7v 0 32 v cc = 3.6v 0 32 1.8 12 32 mhz v 2.7 3.6 1.6 safe operating area
76 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 34.4 flash and eeprom memory characteristics table 34-3. endurance and data retention. table 34-4. programming time. notes: 1. programming is timed from the internal 2 mhz oscillator. 2. eeprom is not erased if the eesave fuse is programmed. 34.5 adc characteristics table 34-5. adc characteristics symbol parameter condition min typ max units flash write/erase cycles 25c 10k cycle 85c 10k data retention 25c 100 year 55c 25 eeprom write/erase cycles 25c 80k cycle 85c 30k data retention 25c 100 year 55c 25 symbol parameter condition min typ (1) max units chip erase flash, eeprom (2) and sram erase 40 ms flash page erase 4 page write 6 page writeautomatic page erase and write 12 eeprom page erase 4 page write 6 page write automatic page erase and write 12 symbol parameter condition min typ max units res resolution programmable: 8/12 8 12 12 bits inl integral non-linearity 500 ks/s -5 <1 5 lsb dnl differential non-linearity 500 ks/s < 0.75 lsb gain error 10 mv offset error 2 mv adc clk adc clock frequency max is 1/4 of peripheral clock v cc ? 2.0v 2000 khz v cc <2.0v 500
77 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 table 34-6. adc gain stag e characteristics. conversion rate v cc ? 2.0v 2000 ksps v cc <2.0v 500 conversion time (propagation delay) (res+2)/2+gain res = 8 or 12, gain = 0 or 1 5 7 8 adc clk cycles sampling time 1/2 adc clk cycle 0.25 s conversion range 0 vref v avcc analog supply voltage v cc -0.3 v cc +0.3 v vref reference voltage 1.0 v cc -0.6 v input bandwidth v cc ? 2.0v 2000 khz v cc <2.0v 500 int1v internal 1.00v reference 1.00 v intvcc internal v cc /1.6 v cc /1.6 v scaledvcc scaled internal v cc /10 input v cc /10 v r aref reference input resistance >10 m ? start-up time 12 24 adc clk cycles internal input sampling speed temp. sensor, v cc /10, bandgap 100 ksps symbol parameter condition min typ max units gain error 1 to 64 gain < 1 % offset error < 1 mv vrms noise level at input 64x gain vref = int. 1v 0.12 mv vref = ext. 2v 0.06 clock rate same as adc 1000 khz symbol parameter condition min typ max units
78 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 34.6 dac characteristics table 34-7. dac characteristics. 34.7 analog comparat or characteristics table 34-8. analog compar ator characteristics. 34.8 bandgap characteristics table 34-9. bandgap voltage characteristics. symbol parameter condition min typ max units inl integral non-linearity v cc = 1.6-3.6v vref = ext. ref 5 lsb dnl differential non-linearity v cc = 1.6-3.6v vref = ext. ref 0.6 <1 lsb vref= av cc 0.6 f clk conversion rate 1000 ksps aref external reference voltage 1.1 av cc -0.6 v reference input impedance >10 m ? max output voltage r load =100k ? av cc *0.98 v min output voltage r load =100k ? 0.01 v symbol parameter condition min typ max units v off input offset voltage v cc = 1.6 - 3.6v <5 mv i lk input leakage current v cc = 1.6 - 3.6v < 1000 pa v hys1 hysteresis, no v cc = 1.6 - 3.6v 0 mv v hys2 hysteresis, small v cc = 1.6 - 3.6v mode = hs 25 mv v hys3 hysteresis, large v cc = 1.6 - 3.6v mode = hs 50 mv t delay propagation delay v cc = 3.0v, t= 85c mode = hs 100 ns v cc = 1.6 - 3.6v mode = hs 70 v cc = 1.6 - 3.6v mode = lp 140 symbol parameter condition min typ max units bandgap startup time as reference for adc or dac 1 clk_per + 2.5s s bandgap voltage 1.1 v
79 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 34.9 brownout detection characteristics table 34-10. brownout detection characteristics. note: 1. bod is calibrated to bod level 0 at 85c, and bod level 0 is the default level. 34.10 pad characteristics table 34-11. pad characteristics. adc/dac ref t= 85c, after calibration 0.99 1.01 v 1 variation over voltage and temperature v cc = 1.6 - 3.6v, t = -40 ? c to 85 ? c 5 % symbol parameter condition min typ max units symbol parameter condition min typ max units bod level 0 falling vcc 1.6 v bod level 1 falling vcc 1.9 bod level 2 falling vcc 2.1 bod level 3 falling vcc 2.4 bod level 4 falling vcc 2.6 bod level 5 falling vcc 2.9 bod level 6 falling vcc 3.2 bod level 7 falling vcc 3.4 hysteresis bod level 0-5 2 % symbol parameter condition min typ max units v ih input high voltage v cc = 2.4 - 3.6v 0.7*v cc v cc +0.5 v v cc = 1.6 - 2.4v 0.8*v cc v cc +0.5 v il input low voltage v cc = 2.4 - 3.6v -0.5 0.3*v cc v v cc = 1.6 - 2.4v -0.5 0.2*v cc v ol output low voltage gpio i ol = 15 ma, v cc = 3.3v 0.45 0.76 v i ol = 10 ma, v cc = 3.0v 0.3 0.64 i ol = 5 ma, v cc = 1.8v 0.2 0.46
80 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 34.11 por characteristics table 34-12. power-on reset characteristics. 34.12 reset characteristics table 34-13. reset characteristics. 34.13 oscillator characteristics table 34-14. internal 32.768khz oscillator characteristics. v oh output high voltage gpio i oh = -8 ma, v cc = 3.3v 2.6 3 v i oh = -6 ma, v cc = 3.0v 2.1 2.2 i oh = -2 ma, v cc = 1.8v 1.4 1.6 i il input leakage current i/o pin <0.001 1 a i ih input leakage current i/o pin <0.001 1 a r p i/o pin pull/buss keeper resistor 20 k ? r rst reset pin pull-up resistor 20 k ? input hysteresis 0.5 v symbol parameter condition min typ max units symbol parameter condition min typ max units v pot- por threshold voltage falling vcc 1 v v pot+ por threshold voltage rising vcc 1.4 v symbol parameter condition min typ max units minimum reset pulse width 90 ns reset threshold voltage v cc = 2.7 - 3.6v 0.45*v cc v v cc = 1.6 - 2.7v 0.42*v cc symbol parameter condition min typ max units accuracy t = 85 ? c, v cc = 3v, after production calibration -0.5 0.5 %
81 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 table 34-15. internal 2mhz os cillator characteristics. table 34-16. internal 32mhz oscillator characteristics. table 34-17. internal 32khz, ulp oscillator characteristics. table 34-18. maximum load capacitance (cl) and esr recommendation for 32.768khz crystal. table 34-19. device wake-up time from sleep. notes: 1. non-prescaled system clock source. 2. time from pin change on external interrupt pin to first ava ilable clock cycle. additional interrupt response time is minimum 5 system clock source cycles. symbol parameter condition min typ max units accuracy t = 85 ? c, v cc = 3v, after production calibration -1.5 1.5 % dfll calibration step size t = 25 ? c, v cc = 3v 0.175 % symbol parameter condition min typ max units accuracy t = 85 ? c, v cc = 3v, after production calibration -1.5 1.5 % dfll calibration stepsize t = 25 ? c, v cc = 3v 0.2 % symbol parameter condition min typ max units output frequency 32 khz ulp osc t = 85 ? c, v cc = 3.0v 26 khz crystal cl [pf] max esr [k ? ] 6.5 60 9 35 symbol parameter condition (1) min typ (2) max units idle sleep, standby and extended standby sleep mode int. 32.768 khz rc 130 s int. 2 mhz rc 2 ext. 2 mhz clock 2 int. 32 mhz rc 0.17 power-save and power-down sleep mode int. 32.768 khz rc 320 int. 2 mhz rc 10.3 ext. 2 mhz clock 4.5 int. 32 mhz rc 5.8
82 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 35. typical characteristics 35.1 active supply current figure 35-1. active supply current vs. frequency f sys = 1 - 32 mhz, t = 25c figure 35-2. active supply current vs. v cc f sys = 1.0 mhz 3.3v 3.0v 2.7v 0 5 10 15 20 25 0 4 8 12 16 20 24 28 32 frequency [mhz] i cc [ma] 1.8v 2.2v 85c 25c -40c 0 200 400 600 800 1000 1200 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] i cc [ua]
83 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 35.2 idle supply current figure 35-3. idle supply current vs. frequency f sys = 1 - 32 mhz, t = 25c figure 35-4. active supply current vs. v cc f sys = 1.0 mhz , 3.3v 3.0v 2.7v 0 1 2 3 4 5 6 7 8 9 10 0 4 8 12 16 20 24 28 32 frequency [mhz] i cc [ma] 1.8v 2.2v 85c 25c -40c 0 50 100 150 200 250 300 350 400 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] i cc [ua]
84 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 35.3 power-down supply current figure 35-5. power-down supply current vs. temperature 35.4 power-save supply current figure 35-6. power-save supply current vs. temperature sampled bod, wdt, rtc from ulp enabled 3.3v 3.0v 2.7v 2.2v 1.8v 0 0.5 1 1.5 2 2.5 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 temperature [c] i cc [ua] 3.3v 2.7v 2.2v 1.8v 0 0.5 1 1.5 2 2.5 3 3.5 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 temperature [c] i cc [ua]
85 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 35.5 pin pull-up figure 35-7. i/o reset pull-up resi stor current vs. reset pin voltage v cc = 1.8v figure 35-8. i/o reset pull-up resi stor current vs. reset pin voltage v cc = 3.0v 85 c 25 c -40 c 0 20 40 60 80 100 0 0.2 0.4 0.6 0.8 1 1.2 1.4 v reset [v] i reset [ua] 85 c 25 c -40 c 0 20 40 60 80 100 120 140 160 180 0 0.5 1 1.5 2 2.5 v reset [v] i reset [ua]
86 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 35-9. i/o reset pull-up resi stor current vs. reset pin voltage v cc = 3.3v 35.6 pin thresholds and hysteresis figure 35-10.i/o pin input threshold voltage vs. v cc v ih - i/o pin read as ?1? 85 c 25 c -40 c 0 20 40 60 80 100 120 140 160 180 00.511.522.53 v reset [v] i reset [ua] 85 c 25 c -40 c 0 0.5 1 1.5 2 2.5 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] v threshold [v]
87 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 35-11.i/o pin input threshold voltage vs. v cc v il - i/o pin read as ?0? figure 35-12.i/o pin input hysteresis vs. v cc. 85 c 25 c -40 c 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] v threshold [v] 85 c 25 c -40 c 0 0.2 0.4 0.6 0.8 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] v threshold [v]
88 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 35-13.reset input threshold voltage vs. v cc v ih - i/o pin read as ?1? figure 35-14.reset input threshold voltage vs. v cc v il - i/o pin read as ?0? 85 c 25 c -40 c 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] v threshold [v] 85 c 25 c -40 c 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] v threshold [v]
89 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 35.7 bod thresholds figure 35-15.bod thresh olds vs. temperature bod level = 1.6v figure 35-16.bod thresh olds vs. temperature bod level = 2.9v rising vcc falling vcc 1.602 1.608 1.614 1.62 1.626 1.632 1.638 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 temperature [c] v bot [v] rising vcc falling vcc 2.905 2.92 2.935 2.95 2.965 2.98 2.995 3.01 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 temperature [c] v bot [v]
90 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 35.8 bandgap figure 35-17.internal 1.00v reference vs. temperature. 35.9 analog comparator figure 35-18.analog comparator hysteresis vs. v cc high-speed, small hysteresis 3.0v 1.8v 0.999 0.9995 1 1.0005 1.001 1.0015 1.002 1.0025 1.003 1.0035 1.004 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 temperature [c] v ref [v] 25c 0 5 10 15 20 25 30 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] hysteresis [mv]
91 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 35-19.analog comparator hysteresis vs. v cc , high-speed large hysteresis figure 35-20.analog comparat or propagation delay vs. v cc high-speed 25c 0 10 20 30 40 50 60 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] hysteresis [mv] 25c 0 20 40 60 80 100 120 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] propagation delay [ns]
92 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 35.10 oscillators and wake-up time figure 35-21.internal 32.768 khz oscillator frequency vs. temperature 1.024 khz output figure 35-22.ultra low-power (ulp) oscillator frequency vs. temperature 1 khz output p 3.0 v 1.8 v 0.99 0.995 1 1.005 1.01 1.015 1.02 1.025 1.03 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 t [c] f [khz] p 3.0 v 1.8 v 0.87 0.88 0.89 0.9 0.91 0.92 0.93 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 t [c] f 1khz output [khz]
93 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 35-23.internal 2 mhz oscill ator cala calibration step size t = -40 to 85 ? c, v cc = 3v figure 35-24.internal 2 mhz oscill ator calb calibration step size t = -40 to 85 ? c, v cc = 3v 0 0.001 0.002 0.003 0.004 0.005 0.006 020406080100120140 cala [lsb] step size: f [mhz] 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 10203040506070 calb [lsb] step size: f [mhz]
94 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 figure 35-25.internal 32 mhz oscill ator cala calibration step size t = -40 to 85 ? c, v cc = 3v figure 35-26.internal 32 mhz oscill ator calb calibration step size t = -40 to 85 ? c, v cc = 3v 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0 20 40 60 80 100 120 140 cala step size: f [mhz] 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0 10203040506070 calb step size: f [mhz]
95 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 35.11 pdi speed figure 35-27.pdi speed vs. v cc 25 c 0 5 10 15 20 25 30 35 1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 v cc [v] f max [mhz]
96 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 36. errata 36.1 atxmega64a1and atxmega128a1 rev. h ? bandgap voltage input for the acs can not be changed when used for both acs simultaneously ? vcc voltage scaler for ac is non-linear ? the adc has up to 2 lsb inaccuracy ? adc gain stage output range is limited to 2.4 v ? sampling speed limited to 500 ksps for supply voltage below 2.0v ? adc event on compare match non-functional ? bandgap measurement with the adc is non-functional when vcc is below 2.7v ? accuracy lost on first three samples after switching input to adc gain stage ? the input difference between two succeeding adc samples is limited by vref ? increased noise when using internal 1.0v reference at low temperature ? configuration of pgm and cwcm not as described in xmega a manual ? pwm is not restarted properly after a fault in cycle-by-cycle mode ? bod will be enabled at any reset ? bodact fuse location is not correct ? sampled bod in active mode will cause noise when bandgap is used as reference ? dac has up to 10 lsb noise in sampled mode ? dac is nonlinear and inaccurate when reference is above 2.4v or vcc - 0.6v ? dac refresh may be blocked in s/h mode ? conversion lost on dac channel b in event triggered mode ? both dflls and both oscillators have to be enabled for one to work ? access error when multiple bus masters are accessing sdram ? eeprom page buffer always written when nvm data0 is written ? pending full asynchronous pin change interrupts will not wake the device ? pin configuration does not affect analog comparator output ? low level interrupt triggered when pin input is disabled ? jtag enable does not override analog comparator b output ? nmi flag for crystal oscillator failure automatically cleared ? flash power reduction mode can not be enabled when entering sleep ? some nvm commands are non-functional ? crystal start-up time required after power-s ave even if crystal is source for rtc ? setting prhires bit makes pwm output unavailable ? accessing ebi address space with prebi set will lock bus master ? rtc counter value not correctly read after sleep ? pending asynchronous rtc-interrupts will not wake up device ? twi, the minimum i2c scl low time could be violated in master read mode ? twi address-mask feature is non-functional ? twi, a general address call will match independent of the r/w-bit value ? twi transmit collision flag not cleared on repeated start ? clearing twi stop interrupt flag may lock the bus
97 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 ? twi start condition at bus timeout will cause transaction to be dropped ? twi data interrupt flag erroneously read as set ? wdr instruction inside closed window will not issue reset 1. bandgap voltage input for the acs cannot be changed when used for both acs simultaneously if the bandgap voltage is selected as input for one analog comparator (ac) and then selected/deselected as input for another ac, the first comparator will be affected for up to 1 s and could potentially give a wrong comparison result. problem fix/workaround if the bandgap is required for both acs simultaneously, configure the input selection for both acs before enabling any of them. 2. vcc voltage scaler for ac is non-linear the 6-bit vcc voltage scaler in the analog comparators is non-linear. figure 36-1. analog comparator voltage scaler vs. scalefac t = 25c problem fix/workaround use external voltage input for the analog comparator if accurate voltage levels are needed 3. the adc has up to 2 lsb inaccuracy the adc will have up to 2 lsb inaccuracy, visible as a saw-tooth pattern on the input voltage/ output value trans- fer function of the adc. the inaccuracy increases with increasing voltage reference reaching 2 lsb with 3v reference. 3.3 v 2.7 v 1.8 v 0 0.5 1 1.5 2 2.5 3 3.5 0 5 10 15 20 25 30 35 40 45 50 55 60 65 scalefac v scale [v]
98 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 problem fix/workaround none, the actual adc resolution will be reduced with up to 2 lsb. 4. adc gain stage output range is limited to 2.4 v the amplified output of the adc gain stage will never go above 2.4 v, hence the differential input will only give cor- rect output when below 2.4 v/gain. for the available gain settings, this gives a differential input range of: problem fix/workaround keep the amplified voltage output from the adc gain stage below 2.4 v in order to get a correct result, or keep adc voltage reference below 2.4 v. 5. sampling speed limited to 500 ksps for supply voltage below 2.0v the sampling frequency is limited to 500 ksps for supply voltage below 2.0v. at higher sampling rate the inl error will be several hundred lsb. problem fix/workaround none. 6. adc event on compare match non-functional adc signalling event will be given at every conversion comp lete even if interrupt mode (intmode) is set to below or above. problem fix/workaround enable and use interrupt on compare match when using the compare function. 7. bandgap measurement with the adc is non-functional when vcc is below 2.7v the adc can not be used to do bandgap measurements when vcc is below 2.7v. problem fix/workaround ? 1x gain: 2.4 v ? 2x gain: 1.2 v ? 4x gain: 0.6 v ? 8x gain: 300 mv ? 16x gain: 150 mv ? 32x gain: 75 mv ? 64x gain: 38 mv
99 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 none. 8. accuracy lost on first three samples after switching input to adc gain stage due to memory effect in the adc gain stage, the first three samples after changing input channel must be disre- garded to achieve 12-bit accuracy. problem fix/workaround run three adc conversions and discard these results after changing input channels to adc gain stage. 9. the input difference between two succeeding adc samples is limited by vref if the difference in input between two samples changes more than the size of the reference, the adc will not be able to convert the data correctly. two conversions will be required before the conversion is correct. problem fix/workaround discard the first conversion if input is changed more than vref, or ensure that the input never changes more then vref. 10. increased noise when using internal 1.0v reference at low temperature when operating at below 0 ? c and using internal 1.0v reference the rms noise will be up 4 lsb, peak-to-peak noise up to 25 lsb. problem fix/workaround use averaging to remove noise. 11. configuration of pgm and cwcm not as described in xmega a manual enabling common waveform channel mode will enable patt ern generation mode (pgm), but not common wave- form channel mode. enabling pattern generation mode (pgm) and not common waveform channel mode (cwcm) will enable both pattern generation mode and common waveform channel mode. problem fix/workaround 12 pwm is not restarted properly after a fault in cycle-by-cycle mode when the awex fault restore mode is set to cycle-by-cycle, the waveform output will not return to normal operation at first update after fault condition is no longer present. pgm cwcm description 0 0 pgm and cwcm disabled 0 1 pgm enabled 1 0 pgm and cwcm enabled 1 1 pgm enabled
100 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 problem fix/workaround do a write to any awex i/o register to re-enable the output. 13. bod will be enabled after any reset if any reset source goes active, the bod will be enabled and keep the device in reset if the vcc voltage is below the programmed bod level. during power-on reset, re set will not be released until vcc is above the pro- grammed bod level even if the bod is disabled. problem fix/workaround do not set the bod level higher than vcc even if the bod is not used. 14. bodact fuse location is not correct the fuses for enabling bod in active mode (bodact) are located at fusebyte2, bit 2 and 3 and not in fuse- byte 5 as described in the xmega a manual. problem fix/workaround access the fuses in fusebyte2. 15. sampled bod in active mode will cause noise when bandgap is used as reference using the bod in sampled mode when the device is running in active or idle mode will add noise on the bandgap reference for adc, dac and analog comparator. problem fix/workaround if the bandgap is used as reference for either the adc, dac or analog comparator, the bod must not be set in sampled mode. 16. dac has up to 10 lsb noise in sampled mode the dac has noise of up to 10 lsb in sampled mode for entire operation range. problem fix/workaround use the dac in continuous mode. 17. dac is nonlinear and inaccurate when reference is above 2.4v or vcc - 0.6v using the dac with a reference voltage above 2.4v or vcc - 0.6v will give inaccurate output when converting codes that give below 0.75v output: ? 10 lsb for continuous mode ? 200 lsb for sample and hold mode problem fix/workaround none.
101 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 18. dac has up to 10 lsb noise in sampled mode if the dac is running in sample and hold (s/h) mode and conversion for one channel is done at maximum rate (i.e. the dac is always busy doing conversion for this channel), this will block refresh signals to the second chan- nel. problem fix/workaround when using the dac in s/h mode, ensure that none of the channels is running at maximum conversion rate, or ensure that the conversion rate of both channels is high enough to not require refresh. 19. conversion lost on dac channel b in event triggered mode if during dual channel operation channel 1 is set in auto trigged conversion mode, channel 1 conversions are occa- sionally lost. this means that not all data-values written to the channel 1 data register are converted. problem fix/workaround keep the dac conversion interval in the range 000-001 (1 and 3 clk), and limit the peripheral clock frequency so the conversion internal never is shorter than 1.5 s. 20. both dflls and both oscillators have to be enabled for one to work in order to use the automatic runtime calibration for the 2 mhz or the 32 mhz internal oscillators, the dfll for both oscillators and both oscillators have to be enabled for one to work. problem fix/workaround enable both dflls and both oscillators when using automatic runtime calibration for either of the internal oscillators. 21. access error when multiple bus masters are accessing sdram if one bus master (cpu and dma channels) is using the ebi to access an sdram in burst mode and another bus master is accessing the same row number in a different bank of the sdram in the cycle directly after the burst access is complete, the access for the second bus master will fail. problem fix/workaround do not put stack pointer in sdram and use dma controller in 1 byte burst mode if cpu and dma controller are required to access sdram at the same time. 22. eeprom page buffer always wr itten when nvm data0 is written if the eeprom is memory mapped, writing to nv m data0 will corrupt data in the eeprom page buffer. problem fix/workaround before writing to nvm data0, for example when doing soft ware crc or flash page buffer write, check if eeprom page buffer active loading flag (eeload) is set. do not write nvm data0 when eeload is set. 23. pending full asynchronous pin change interrupts will not wake the device
102 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 any full asynchronous pin-change interrupt from pin 2, on any port, that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. this applies when entering all sleep modes where the system clock is stopped. problem fix/workaround none. 24. pin configuration does not affect analog comparator output the output/pull and inverted pin configuration does not affect the analog comparator output function. problem fix/workaround none for output/pull configuration. for inverted i/o, configure the analog comparator to give an inverted result (i.e. connect positive input to the neg- ative ac input and vice versa), or use and external inverter to change polarity of analog comparator output. 25. low level interrupt triggered when pin input is disabled if a pin input is disabled, but pin is configured to trigger on low level, interrupt request will be sent. problem fix/workaround ensure that interrupt mask for the disabled pin is cleared. 26. jtag enable does not override analog comparator b output when jtag is enabled this will not override the analog comparator b (acb) output, ac0out on pin 7 if this is enabled. problem fix/workaround use analog comparator output for aca when jtag is used, or use the pdi as debug interface. 27. nmi flag for crystal oscillat or failure automatically cleared nmi flag for crystal oscillator failure (xoscfdif) will be automatically cleared when executing the nmi interrupt handler. problem fix/workaround this device revision has only one nmi interrupt source, so checking the interrupt source in software is not required. 28. flash power reduction mode can not be enabled when entering sleep if flash power reduction mode is enabled when enteri ng power-save or extended standby sleep mode, the device will only wake up on every fourth wake-up reques t. if flash power reduction mode is enabled when enter- ing idle sleep mode, the wake-up time will vary with up to 16 cpu clock cycles.
103 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 problem fix/workaround disable flash power reduction mode before entering sleep mode. 29. some nvm commands are non-functional the following nvm commands are non-functional: problem fix/workaround none for flash range crc use separate programming commands for accessing application and boot section. 30. crystal start-up time required after power-save even if crystal is source for rtc even if 32.768 khz crystal is used for rtc during sleep, the clock from the crystal will not be ready for the system before the specified start-up time. see "xoscsel[3:0]: cr ystal oscillator selection" in xmega a manual. if bod is used in active mode, the bod will be on during this period (0.5s). problem fix/workaround if faster start-up is required, go to sleep with internal oscillator as system clock. 31. setting prhires bit makes pwm output unavailable setting the hires power reduction (pr) bit for portx will make any frequency or pwm output for the corre- sponding timer/counters (tcx0 and tcx1) unavailable on the pin even if the hi-res is not used. problem fix/workaround do not write the hires pr bit on portx when frequency or pwm output from tcx0/1 is used. ? 0x2b erase flash page ? 0x2e write flash page ? 0x2f erase & write flash page ? 0x3a flash range crc ? 0x22 erase application section page ? 0x24 write application section page ? 0x25 erase & write application section page ? 0x2a erase boot loader section page ? 0x2c write boot loader section page ? 0x2d erase & write bo ot loader section page
104 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 32. accessing ebi address space with prebi set will lock bus master if ebi power reduction bit is set while ebi is enabled, accessing external memory could result in bus hang-up, blocking all further access to all data memory. problem fix/workaround ensure that ebi is disabled before setting ebi power reduction bit. 33. rtc counter value not correctly read after sleep if the rtc is set to wake up the device on rtc overflow and bit 0 of rtc cnt is identical to bit 0 of rtc per as the device is entering sleep, the value in the rtc count r egister can not be read correctly within the first prescaled rtc clock cycle after wakeup. the value read will be the same as the value in the register when entering sleep. the same applies if rtc compare match is used as wake-up source. problem fix/workaround wait at least one prescaled rtc clock cycle before reading the rtc cnt value. 34. pending asynchronous rtc-interrupts will not wake up device asynchronous interrupts from the real-time-counter that is pending when the sleep instruction is executed, will be ignored until the device is woken from anot her source or the source triggers again. problem fix/workaround none. 35. twi, the minimum i 2 c scl low time could be violated in master read mode if the twi is in master read mode and issues a repeated start on the bus, this will immediately release the scl line even if one complete scl low period has not passed. this means that the minimum scl low time in the i2c specification could be violated. problem fix/workaround if this is a problem in the application, ensure in software that the repeated start is never issued before one scl low time has passed. 36. twi address-mask feature is non-functional the address-mask feature is non-functional, so the twi can not perform hardware address match on more than one address. problem fix/workaround if the twi must respond to multiple addresses, enable promiscuous mode for the twi to respond to all address and implement the address-mask function in software.
105 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 37. twi, a general address call will match independent of the r/w-bit value when the twi is in slave mode and a general address call is issued on the bus, the twi slave will get an address match regardless of the received r/w bit. problem fix/workaround use software to check the r/w-bit on general call address match. 38. twi transmit collision flag not cleared on repeated start the twi transmit collision flag should be automatically cleared on start and repeated start, but is only cleared on start. problem fix/workaround clear the flag in software after address interrupt. 39. clearing twi stop interrupt flag may lock the bus if software clears the stop interrupt flag (apif) on the same peripheral clock cycle as the hardware sets this flag due to a new address received, clkhold is not cleared and the scl line is not released. this will lock the bus. problem fix/workaround check if the bus state is idle. if this is the case, it is safe to clear apif. if the bus state is not idle, wait for the scl pin to be low before clearing apif. code: /* only clear the interrupt flag if within a "safe zone". */ while ( /* bus not idle: */ ((comms_twi.master.status & twi_master_busstate_gm) != twi_master_busstate_idle_gc)) && /* scl not held by slave: */ !(comms_twi.slave.status & twi_slave_clkhold_bm) ) { /* ensure that the scl line is low */ if ( !(comms_port.in & pin1_bm) ) if ( !(comms_port.in & pin1_bm) ) break; } /* check for an pending address match interrupt */ if ( !(comms_twi.slave.status & twi_slave_clkhold_bm) ) { /* safely clear interrupt flag */ comms_twi.slave.status |= (uint8_t)twi_slave_apif_bm; }
106 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 40. twi start condition at bus timeout will cause transaction to be dropped if bus timeout is enabled and a timeout occurs on the same peripheral clock cycle as a start is detected, the transaction will be dropped. problem fix/workaround none. 41. twi data interrupt flag erroneously read as set when issuing the twi slave response command cmd=0b11, it takes 1 peripheral clock cycle to clear the data interrupt flag (dif). a read of dif directly after issuing the command will show the dif still set. problem fix/workaround add one nop instruction before checking dif. 42. wdr instruction inside closed window will not issue reset when a wdr instruction is execute within one ulp clock cycle after updating the window control register, the counter can be cleared without giving a system reset. problem fix/workaround wait at least one ulp clock cycle before executing a wdr instruction.
107 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 36.2 atxmega64a1 and atxmega128a1 rev. g ? bootloader section in flash is non-functional ? bandgap voltage input for the acs cannot be changed when used for both acs simultaneously ? dac is nonlinear and inaccurate when reference is above 2.4v ? adc gain stage output range is limited to 2.4 v ? the adc has up to 2 lsb inaccuracy ? twi, a general address call will match independent of the r/w-bit value ? twi, the minimum i 2 c scl low time could be violated in master read mode ? setting hires pr bit makes pwm output unavailable ? eeprom erase and write does not work with all system clock sources ? bod will be enabled after any reset ? propagation delay analog comparator increasing to 2 ms at -40 ? c ? sampled bod in active mode will cause noise when bandgap is used as reference ? default setting for sdram refresh period too low ? flash power reduction mode can not be enabled when entering sleep mode ? enabling analog comparator b output will cause jtag failure ? jtag enable does not override analog comparator b output ? bandgap measurement with the adc is non-functional when v cc is below 2.7v ? dac refresh may be blocked in s/h mode ? inverted i/o enable does not affect analog comparator output ? both dflls and both oscillators has to be enabled for one to work 1. bootloader section in flash is non-functional the bootloader section is non-functional, and bootloader or application code cannot reside in this part of the flash. problem fix/workaround none, do not use the bootloader section. 2. bandgap voltage input for the acs cannot be changed when used for both acs simultaneously if the bandgap voltage is selected as input for one analog comparator (ac) and then selected/deselected as input for the another ac, the first comparator will be affected fo r up to 1 us and could potentially give a wrong compari- son result. problem fix/workaround if the bandgap is required for both acs simultaneously, configure the input selection for both acs before enabling any of them. 3. dac is nonlinear and inaccurate when reference is above 2.4v using the dac with a reference voltage above 2.4v give inaccurate output when converting codes that give below 0.75v output: ? 20 lsb for continuous mode
108 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 ? 200 lsb for sample and hold mode problem fix/workaround none, avoid using a voltage reference above 2.4v. 4. adc gain stage output range is limited to 2.4 v the amplified output of the adc gain stage will never go above 2.4 v, hence the differential input will only give cor- rect output when below 2.4 v/gain. for the available gain settings, this gives a differential input range of: problem fix/workaround keep the amplified voltage output from the adc gain stage below 2.4 v in order to get a correct result, or keep adc voltage reference below 2.4 v. 5. the adc has up to 2 lsb inaccuracy the adc will have up to 2 lsb inaccuracy, visible as a saw-tooth pattern on the input voltage/ output value trans- fer function of the adc. the inaccuracy increases with increasing voltage reference reaching 2 lsb with 3v reference. problem fix/workaround none, the actual adc resolution will be reduced with up to 2 lsb. 6. twi, a general address call will match independent of the r/w-bit value when the twi is in slave mode and a general address call is issued on the bus, the twi slave will get an address match regardless of the r/w-bit (addr[0] bi t) value in the slave address register. problem fix/workaround use software to check the r/w-bit on general call address match. ? 1x gain: 2.4 v ? 2x gain: 1.2 v ? 4x gain: 0.6 v ? 8x gain: 300 mv ? 16x gain: 150 mv ? 32x gain: 75 mv ? 64x gain: 38 mv
109 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 7. twi, the minimum i 2 c scl low time could be violated in master read mode when the twi is in master read mode and issuing a repeat ed start on the bus, this will immediately release the scl line even if one complete scl low period has not passed. this means that the minimum scl low time in the i 2 c specification could be violated. problem fix/workaround if this causes a potential problem in the application, software must ensure that the repeated start is never issued before one scl low time has passed. 8. setting hires pr bit makes pwm output unavailable setting the hires power reduction (pr) bit for portx will make any frequency or pwm output for the corre- sponding timer/counters (tcx0 and tcx1) unavailable on the pin. problem fix/workaround do not write the hires pr bit on portx when frequency or pwm output from tcx0/1 is used. 9. eeprom erase and write does not work with all system clock sources when doing eeprom erase or write operations with ot her clock sources than the 2 mhz rcosc, flash will be read wrongly for one or two clock cycles at the end of the eeprom operation. problem fix/workaround alt 1: use the internal 2 mhz rcosc when doing erase or write operations on eeprom. alt 2: ensure to be in sleep mode while completing erase or write on eeprom. after starting erase or write opera- tions on eeprom, other interrupts should be disabled and the device put to sleep. 10. bod will be enabled after any reset if any reset source goes active, the bod will be enabled and keep the device in reset if the vcc voltage is below the programmed bod level. during power-on reset, re set will not be released until vcc is above the pro- grammed bod level even if the bod is disabled. problem fix/workaround do not set the bod level higher than vcc even if the bod is not used. 11. propagation delay analog comparator increasing to 2 ms at -40 c when the analog comparator is used at temperatures reachi ng down to -40 c, the propagation delay will increase to ~2 ms. problem fix/workaround none
110 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 12. sampled bod in active mode will cause noise when bandgap is used as reference using the bod in sampled mode when the device is running in active or idle mode will add noise on the bandgap reference for adc and dac. problem fix/workaround if the bandgap is used as reference for either the adc or the dac, the bod must not be set in sampled mode. 13. default setti ng for sdram refresh period too low if the sdram refresh period is set to a value less t hen 0x20, the sdram content may be corrupted when access- ing through on-chip debug sessions. problem fix/workaround the sdram refresh period (refreshh/l) should not be set to a value less then 0x20. 14. flash power reduction mode can not be enabled when entering sleep mode if flash power reduction mode is enabled when enteri ng power-save or extended standby sleep mode, the device will only wake up on every fourth wake-up request. if flash power reduction mode is enabled when entering idle sleep mode, the wake-up time will vary with up to 16 cpu clock cycles. problem fix/workaround disable flash power reduction mode before entering sleep mode. 15. jtag enable does not override analog comparator b output when jtag is enabled this will not override the anlog comparator b (acb)ouput, ac0out on pin 7 if this is enabled. problem fix/workaround ac0out for acb should not be enabled when jtag is used. use only analog comparator output for aca when jtag is used, or use the pdi as debug interface. 16. bandgap measurement with the adc is non-functional when v cc is below 2.7v the adc cannot be used to do bandgap measurements when v cc is below 2.7v. problem fix/workaround if internal voltages must be measured when v cc is below 2.7v, measure the internal 1.00v reference instead of the bandgap.
111 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 17. dac refresh may be blocked in s/h mode if the dac is running in sample and hold (s/h) mode and conversion for one channel is done at maximum rate (i.e. the dac is always busy doing conversion for this channel), this will block refresh signals to the second chan- nel. problem fix/workarund when using the dac in s/h mode, ensure that none of the channels is running at maximum conversion rate, or ensure that the conversion rate of both channels is high enough to not require refresh. 18. inverted i/o enable does not affect analog comparator output the inverted i/o pin function does not affect the analog comparator output function. problem fix/workarund configure the analog comparator setup to give a inverted result (i.e. connect positive input to the negative ac input and vice versa), or use and externel inverter to change polarity of analog comparator output. 19. both dflls and both oscillators has to be enabled for one to work in order to use the automatic runtime calibration for t he 2 mhz or the 32 mhz internal oscilla-tors, the dfll for both oscillators and both oscillators has to be enabled for one to work. problem fix/workarund enabled both dflls and oscillators when using automatic runtime calibration for one of the internal oscillators.
112 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 37. datasheet revision history please note that the referring page numbers in this section ar e referred to this document. the referring revision in this section are referring to the document revision. 37.1 8067o ? 06/2013 37.2 8067n ? 03/2013 37.3 8067m ? 09/2010 37.4 8067l ? 08/2010 1. not recommended for new designs - use xmega a1u series. 1. removed all references to atxme ga192a1, atxmega256a1 and atxmega384a1. 2. updated module description. based on the xmega a1u device datasheet. 3. updated analog comparator (ac) overview, figure 28-1 on page 53 . 4. updated ?adc characteristics? on page 76 . 5 updated page erase time in ?flash and eeprom memory characteristics? on page 76 . 6 updated output low voltage conditions from i oh to i ol in ?pad characteristics? on page 79 . 7. removed tbds from: ?dc characteristics? on page 73 . ?dac characteristics? on page 78 . ?bandgap characteristics? on page 78 . 8. updated ?errata? on page 96 to be valid for both atxmega64a1 and atxmega128a1. 9. removed boundary scan order table. 1. updated errata ?atxmega64a1and atxmega128a1 rev. h? on page 96 1. removed footnote 3 of figure 2-1 on page 3 2. updated ?features? on page 32 . event channel 0 output on port pin 7 3. updated ?dc characteristics? on page 73 , by adding i cc for flash/eeprom programming. 4. added avcc in ?adc characteristics? on page 76 . 5. updated start up time in ?adc characteristics? on page 76 .
113 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 37.5 8067k ? 02/2010 37.6 8067j ? 02/2010 37.7 8067i ? 04/2009 37.8 8067h ? 04/2009 6. updated ?dac characteristics? on page 78 . removed dc output impedance. 7. fixed typo in ?packaging information? section. 8. fixed typo in ?errata? section. 1. added ?pdi speed vs. vcc? on page 95 . 1. removed jtag reset from the datasheet. 2. updated ?timer/counter and awex functions? on page 56 . 3. updated ?alternate pin functions? on page 58 . 3. updated all ?electrical characteristics? on page 73 . 4. updated ?pad characteristics? on page 79 . 5. changed internal oscillator speed to ?oscillators and wake-up time? on page 92 . 6. updated ?errata? on page 96 1. updated ?ordering information? on page 2 . 2. updated ?pad characteristics? on page 79 . 1. editorial updates. 2. updated ?overview? on page 54 . 3. updated table 29-9 on page 54 . 4. updated ?peripheral module address map? on page 62 . ircom has addre ss map: 0x08f8. 5. updated ?electrical characteristics? on page 73 . 6. updated ?pad characteristics? on page 79 . 7. updated ?typical characteristics? on page 82 .
114 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 37.9 8067g ? 11/2008 37.10 8067f ? 09/2008 37.11 8067e ? 08/2008 37.12 8067d ? 07/2008 1. updated ?block diagram? on page 6 . 2. updated feature list in ?memories? on page 12 . 3. updated ?programming and debugging? on page 54 . 4. updated ?peripheral module address map? on page 62 . ircom has address 0x8f0. 5. added ?electrical characteristics? on page 73 . 6. added ?typical characteristics? on page 82 . 7. added ?atxmega64a1and atxmega128a1 rev. h? on page 96 . 8. updated ?atxmega64a1 and atxmega128a1 rev. g? on page 107 . 1. updated ?features? on page 1 2. updated ?ordering information? on page 2 3. updated figure 7-1 on page 11 and figure 7-2 on page 11 . 4. updated table 7-2 on page 15 . 5. updated ?features? on page 48 and ?overview? on page 48 . 6. removed ?interrupt vector summary? section from datasheet. 1. changed figure 2-1 ?s title to ?block diagram and pinout? on page 3 . 2. updated figure 2-2 on page 4 . 3. updated table 29-2 on page 51 and table 29-3 on page 52 . 1. updated ?ordering information? on page 2 . 2. updated ?peripheral module address map? on page 62 . 3. inserted ?interrupt vector summary? on page 56 .
115 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 37.13 8067c ? 06/2008 37.14 8067b ? 05/2008 37.15 8067a ? 02/2008 1. updated the front page and ?features? on page 1 . 2. updated the ?dc characteristics? on page 73 . 3. updated figure 3-1 on page 6 . 4. added ?flash and eeprom page size? on page 15 . 5. updated table 33-6 on page 72 with new data: gain error, offset error and signal -to-noise ratio (snr). 6. updated errata ?atxmega64a1 and atxmega128a1 rev. g? on page 107 . 1. updated ?pinout/block diagram? on page 3 and ?pinout and pin functions? on page 55 . 2. added xmega a1 block diagram, figure 3-1 on page 6 . 3. updated ?overview? on page 5 included the xmega a1 explanation text on page 6. 4. updated avr cpu ?features? on page 8 . 5. updated event system block diagram, figure 10-1 on page 20 . 6. updated ?interrupts and programmable multileve l interrupt controller? on page 29 . 7. updated ?ac - analog comparator? on page 52 . 8. updated ?alternate pin function description? on page 55 . 9. updated ?alternate pin functions? on page 58 . 10. updated ?typical characteristics? on page 82 . 11. updated ?ordering information? on page 2 . 12. updated ?overview? on page 5 . 13. updated figure 6-1 on page 8 . 14. inserted a new figure 16-1 on page 37 . 15. updated speed grades in ?speed? on page 75 . 16. added a new atxmega384a1 device in ?features? on page 1 , updated ?ordering information? on page 2 and ?memories? on page 12 . 17. replaced the figure 3-1 on page 6 by a new xmega a1 detailed block diagram. 18. inserted errata ?atxmega64a1 and atxmega128a1 rev. g? on page 107 . 1. initial revision.
116 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013
1 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 table of contents features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1. ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2. pinout/block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3. overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1 block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4. resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.1 recommended reading. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 5. capacitive touch sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 6. disclaimer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 7. avr cpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 7.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 7.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 7.3 architectural overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 7.4 alu - arithmetic logic unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 7.5 program flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 7.6 status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 7.7 register file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 8. memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 8.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 8.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 8.3 in-system programmable flash program memory . . . . . . . . . . . . . . . . . . . . . 13 8.4 fuses and lock bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 8.5 data memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 8.6 eeprom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 8.7 i/o memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 8.8 external memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 8.9 data memory and bus arbitration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 8.10 memory timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 8.11 device id and revision. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 8.12 i/o memory protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 8.13 jtag disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 8.14 flash and eeprom page size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 9. dmac - direct memory access controller . . . . . . . . . . . . . . . . . . . . 18 9.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 9.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 10. event system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 10.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 10.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 11. system clock and clock options . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 11.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 11.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 11.3 clock options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 12. power management and sleep modes . . . . . . . . . . . . . . . . . . . . . . 24 12.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 12.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 12.3 sleep modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 13. system control and reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 13.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 13.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 13.3 reset sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 13.4 reset sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 13.5 wdt - watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 13.6 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 14. interrupts and programmable multilevel interrupt controller . . . . . . 29 14.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 14.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 14.3 interrupt vectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 15. i/o ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 15.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 15.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 15.3 output driver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 15.4 input sensing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 15.5 port interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 15.6 alternate port functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 16. t/c - 16-bit timer/counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 16.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 16.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 17. awex - advanced waveform extension . . . . . . . . . . . . . . . . . . . . . 38 17.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 17.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 18. hi-res - high resolution extension . . . . . . . . . . . . . . . . . . . . . . . . . 39 18.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 18.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 19. rtc - 16-bit real-time counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 19.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 19.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 20. twi - two-wire interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 20.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 20.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 21. spi - serial peripheral interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 21.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 21.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 22. usart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 22.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 22.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 23. ircom - ir communication module . . . . . . . . . . . . . . . . . . . . . . . . 45 23.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 23.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 24. aes and des crypto engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 24.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 24.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 25. ebi ? external bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 25.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 25.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 26. adc - 12-bit analog to digital converter . . . . . . . . . . . . . . . . . . . . . 48 26.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 26.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 27. dac - 12-bit digital to analog converter . . . . . . . . . . . . . . . . . . . . . 50 27.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 27.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 28. ac - analog comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 28.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 28.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 29. programming and debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 29.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 29.2 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 30. pinout and pin functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 30.1 alternate pin function descripti on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 30.2 alternate pin functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 31. peripheral module address map . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 32. instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 33. packaging information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 33.1 100a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 33.2 100c1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 33.3 100c2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 34. electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 34.1 absolute maximum ratings*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 34.2 dc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 34.3 speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 34.4 flash and eeprom memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 76 34.5 adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 34.6 dac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 34.7 analog comparator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 34.8 bandgap characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 34.9 brownout detection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013 34.10 pad characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 34.11 por characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 34.12 reset characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 34.13 oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 35. typical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 35.1 active supply current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 35.2 idle supply current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 35.3 power-down supply current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 35.4 power-save supply current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 35.5 pin pull-up. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 35.6 pin thresholds and hysteresis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 35.7 bod thresholds. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 35.8 bandgap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 35.9 analog comparator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 35.10 oscillators and wake-up time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 35.11 pdi speed. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 36. errata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 36.1 atxmega64a1and atxmega128a1 rev. h. . . . . . . . . . . . . . . . . . . . . . . . . . . 96 36.2 atxmega64a1 and atxmega128a1 rev. g . . . . . . . . . . . . . . . . . . . . . . . . . 107 37. datasheet revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 37.1 8067o ? 06/2013 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 37.2 8067n ? 03/2013 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 37.3 8067m ? 09/2010 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 37.4 8067l ? 08/2010 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 37.5 8067k ? 02/2010. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 37.6 8067j ? 02/2010 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 37.7 8067i ? 04/2009 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 37.8 8067h ? 04/2009 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 37.9 8067g ? 11/2008 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 37.10 8067f ? 09/2008. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 37.11 8067e ? 08/2008. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 37.12 8067d ? 07/2008 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 37.13 8067c ? 06/2008 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 37.14 8067b ? 05/2008. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 37.15 8067a ? 02/2008. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 table of contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
5 [not recommended for new designs - use xmega a1u series] xmega a1 [datasheet] 8067o?avr?06/2013
atmel corporation 1600 technology drive san jose, ca 95110 usa tel: (+1) (408) 441-0311 fax: (+1) (408) 487-2600 www.atmel.com atmel asia limited unit 01-5 & 16, 19f bea tower, millennium city 5 418 kwun tong roa kwun tong, kowloon hong kong tel: (+852) 2245-6100 fax: (+852) 2722-1369 atmel munich gmbh business campus parkring 4 d-85748 garching b. munich germany tel: (+49) 89-31970-0 fax: (+49) 89-3194621 atmel japan g.k. 16f shin-osaki kangyo bldg 1-6-4 osaki, shinagawa-ku tokyo 141-0032 japan tel: (+81) (3) 6417-0300 fax: (+81) (3) 6417-0370 ? 2013 atmel corporation. all rights reserved. / rev.: 8067o?avr?06/2013 disclaimer: the information in this document is provided in co nnection with atmel products. no lic ense, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of atmel products. exc ept as set forth in the atmel terms and conditions of sales locat ed on the atmel website, atmel assumes no liability whatsoever and disclaims any express, implied or statutory warranty relating to its products including, but not li mited to, the implied warranty of merchantability, fitness for a particular purpose, or non-infringement. in no event shall atmel be liable for any d irect, indirect, consequential, punitive, special or incide ntal damages (including, without limitation, damages for loss and profits, business i nterruption, or loss of information) arising out of the us e or inability to use this document, even if at mel has been advised of the possibility of suc h damages. atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the ri ght to make changes to specifications and products descriptions at any time without notice. atmel does not make any commitment to update th e information contained herein. un less specifically provided oth erwise, atmel products are not suitable for, and shall not be used in, automotive applications. atmel products are not intended, authorized, or warranted for use as components in applications intend ed to support or sustain life. atmel ? , atmel logo and combinations thereof, enabling unlimited possibilities ? , and others are registered trademarks or trademarks of atmel corporation or its subsidiaries. other terms and product names may be trademarks of others.


▲Up To Search▲   

 
Price & Availability of ATXMEGA128A1-14

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X